-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_profile
70 lines (56 loc) · 1.66 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#export PATH=$PATH:~/bin/
#export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
# customize prompt
export PS1="\[\033[36m\]\u\[\033[m\]:\[\033[33;1m\]\w\[\033[m\]\$ "
export CLICOLOR=1
export LSCOLORS=exfxcxdxbxegedabagacad
GIT_PROMPT_ONLY_IN_REPO=0
source ~/.bash-git-prompt/gitprompt.sh
# osx stuff
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
# gpg on mac
git config --unset gpg.program
export GPG_TTY=$(tty)
# brew auto completion
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
# asdf stuff
. $HOME/.asdf/asdf.sh
. $HOME/.asdf/completions/asdf.bash
export ASDFROOT=$HOME/.asdf
export ASDFINSTALLS=$HOME/.asdf/installs
# go stuff
export GOPATH=$HOME/go
export GOBIN=$GOPATH/bin
#export GOROOT=/usr/local/opt/go/libexec
GOV=$(asdf current golang | sed 's/[[:blank:]]*(set by .*)//g')
export GOROOT=$ASDFINSTALLS/golang/$GOV/go/
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
# qt stuff
export PATH="/usr/local/opt/qt/bin:$PATH"
export QT_DIR="/usr/local/opt/qt/bin"
alias emacs='emacs &'
# bash aliases
alias lein='~/bin/lein.sh'
alias ga="git add"
alias gb="git branch"
alias gbd="git branch -D"
alias gc="git commit -S"
alias gd="git diff"
alias gco="git checkout"
alias gp="git push"
alias gpsup="git push --set-upstream origin $(git rev-parse --abbrev-ref HEAD)"
alias gr="git reset"
alias grh="git reset --hard"
alias gs="git status"
clown () {
git clone [email protected]:ivx/"$1".git
}
alias dc="docker-compose"
alias be="bundle exec"
alias ber="bundle exec rake"
alias elint="mix format && mix credo --strict"
alias rlint="bundle exec rubocop -a"
alias golint="go fmt ./..."