forked from gnawhleinad/dot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
49 lines (35 loc) · 1.22 KB
/
.bash_profile
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
42
43
44
45
46
47
48
49
export PATH=/usr/local/bin:$PATH
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
if [ -d "$(brew --prefix git)" ]; then
. $(brew --prefix git)/etc/bash_completion.d/git-completion.bash
. $(brew --prefix git)/etc/bash_completion.d/git-prompt.sh
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true
export GIT_PS1_SHOWCOLORHINTS=true
GIT_PS1='\[\e[0;31m\]$(__git_ps1)\[\e[0m\]'
fi
if [ -d "$(brew --prefix hub)" ]; then
. $(brew --prefix hub)/etc/bash_completion.d/hub.bash_completion.sh
fi
if [[ "$HOSTNAME" == "vader" ]]; then
export PS1='(。▼皿▼): \[\e[1m\]\W\[\e[0m\]'$GIT_PS1'\$ '
elif [[ "$HOSTNAME" == "snoke" ]]; then
export PS1='●~*: \[\e[1m\]\W\[\e[0m\]'$GIT_PS1'\$ '
fi
export HISTCONTROL=ignorespace
export EDITOR="mvim -v"
alias mvim="mvim -v"
export CODE=$HOME/code
export GOPATH=$CODE/go
export PATH=$PATH:$GOPATH/bin
command -v rbenv >/dev/null 2>&1 && eval "$(rbenv init - --no-rehash bash)"
if [ -z "$(pgrep gpg-agent)" ]; then
eval "$(gpg-agent --daemon)"
fi
export GPG_TTY=$(tty)
lpasscp() {
lpass show --clip --password "$1"
}
alias lpasscp=lpasscp
alias lockscreen='/System/Library/CoreServices/"Menu Extras"/User.menu/Contents/Resources/CGSession -suspend'