-
Notifications
You must be signed in to change notification settings - Fork 1
/
marder_lab_bashrc.sh
62 lines (44 loc) · 1.58 KB
/
marder_lab_bashrc.sh
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
# open connection to ssh-add
eval $(ssh-agent)
# make a better prompt, colours, etc.
if [ $(echo $STY | wc -m) -gt 3 ]; then
echo "In screen!"
PS1='\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\e[0;31m\]\w\[\e[0m\] [screen]$ '
else
PS1='\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\e[0;31m\]\w\[\e[0m\] ★ '
fi;
# set default text editor to subl
export EDITOR=subl
export VISUAL=subl
# ######## ### ######## ## ## ######
# ## ## ## ## ## ## ## ## ##
# ## ## ## ## ## ## ## ##
# ######## ## ## ## ######### ######
# ## ######### ## ## ## ##
# ## ## ## ## ## ## ## ##
# ## ## ## ## ## ## ######
# awesome git prompt, see: https://github.com/arialdomartini/oh-my-git
source ~/code/oh-my-git/prompt.sh
# go
export GOPATH='/usr/local/bin/'
# better auto complete
bind "set completion-ignore-case on"
# improve history
export HISTCONTROL=ignoreboth:erasedups
#export HISTSIZE=10000 # remember more things in history
# color folders in ls
alias ls='ls -G'
export CLICOLOR=1
export LSCOLORS=Gxfxcxdxbxegedabagacad
# handy git shortcuts
alias ga='git add -A .'
alias gc='git commit -v'
# alias gp='git push && git push alt master'
alias gd='git diff --color | diff-so-fancy'
# supports history search using up and down arrows
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
bind '"\eOA": history-search-backward'
bind '"\eOB": history-search-forward'
set show-all-if-ambiguous on
set completion-ignore-case on