-
Notifications
You must be signed in to change notification settings - Fork 1
/
.bashrc
42 lines (31 loc) · 1013 Bytes
/
.bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
[[ -f ~/.bash_alias ]] && source ~/.bash_alias
# PS1='[\u@\h \W]\$ '
PS1="\n\[\e[34m\]╔═(\[\e[35m\]\u\[\e[34m\]@\[\e[35m\]\h\[\e[34m\])════════════(\[\e[35m\]\w\[\e[34m\])════════════(\[\e[36m\]\@, \d\[\e[34m\])════════════▒\n╚══\[\e[37m\][\\$]> "
# system exports
export VISUAL=vim
export EDITOR=vim
export GTK_THEME=Pop-dark
# language exports
export GOROOT=/usr/local/go
# export GOBIN=/usr/lib/go/bin
export GOPATH=$HOME/dev/go
export GOBIN=$GOPATH/bin
export GOPKG=$GOPATH/pkg
export GOSRC=$GOPATH/src
export CODEINFO=$HOME/info
export RUST=$HOME/.cargo
# export PATH=$PATH:$HOME/.local/bin:$GOBIN
function addToPath {
case ":$PATH:" in
*":$1:"*) :;; # already there
*) PATH="$1:$PATH";; # or PATH="$PATH:$1"
esac
}
addToPath $HOME/.local/bin:$GOROOT/bin:$GOBIN:$CODEINFO:$RUST/bin
neofetch