-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_tobias
47 lines (37 loc) · 1.17 KB
/
.bash_tobias
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
#!/bin/bash
source ~/.git-cd/gitcd.sh
source ~/.git-completion.bash
# bash-git-prompt
export GIT_PROMPT_ONLY_IN_REPO=0
# GIT_PROMPT_FETCH_REMOTE_STATUS=0 # uncomment to avoid fetching remote status
# GIT_PROMPT_START=... # uncomment for custom prompt start sequence
# GIT_PROMPT_END=... # uncomment for custom prompt end sequence
# GIT_PROMPT_THEME=Custom # use custom .git-prompt-colors.sh
# GIT_PROMPT_THEME=Solarized # use theme optimized for solarized color scheme
source ~/.bash-git-prompt/gitprompt.sh
export GOPATH="$HOME/go"
export PATH="$PATH:$GOPATH/bin"
export VISUAL="nvim"
export EDITOR="$VISUAL"
alias g=git
alias gcd=gitcd
alias ccd='cd ${GOPATH}/src/github.com/cockroachdb/cockroach/pkg'
alias ag="$(which ag) --ignore '*\.pb\.*'"
alias agl="ag -l"
alias f="find . -name"
alias vim=nvim
function gc {
git br -d $(git br --merged | grep -vF '*')
git br -D $(git br | grep -E '^\s*pr\/[0-9]+$')
}
source ~/.bash_cockroach
__git_complete g __git_main
function gp1 {
export GOPATH="${HOME}/go"
export PATH="${GOPATH}/bin:${PATH}"
}
function gp2 {
export GOPATH="${HOME}/go2"
export PATH="${GOPATH}/bin:${PATH}"
}
export PATH="$HOME/.cargo/bin:$PATH"