-
Notifications
You must be signed in to change notification settings - Fork 0
/
bash_profile-boilerplate.sh
52 lines (42 loc) · 1.26 KB
/
bash_profile-boilerplate.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
# remove annoying mail messages
unset MAILCHECK
unset MAIL
# remove apple double files
export COPYFILE_DISABLE=true
# make it colorful
export CLICOLOR=1
# give privileges to user bin paths
export PATH="~/bin:$PATH"
export PATH="/usr/local/bin:$PATH"
export PATH="/usr/local/share/npm/bin:$PATH"
export PATH="/usr/local/sbin:$PATH"
export PATH="$HOME/.node/bin:$PATH"
# directory access shortcuts
alias desk='cd ~/Desktop/'
alias down='cd ~/Downloads/'
alias drive='cd ~/bleech/'
alias www='cd ~/www/'
# directory command shortcuts
alias lsa='ls -a'
alias dir='ls -lah'
alias grep='grep --color=auto'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
# always ensure strongest image optimization settings
alias optipng='optipng -o7'
alias jpegoptim='jpegoptim --strip-all -t'
# load rvm
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
# load chruby
source /usr/local/opt/chruby/share/chruby/chruby.sh
source /usr/local/opt/chruby/share/chruby/auto.sh
# load bash completion
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
# load bash-git-prompt
if [ -f "$(brew --prefix bash-git-prompt)/share/gitprompt.sh" ]; then
GIT_PROMPT_THEME=Default
source "$(brew --prefix bash-git-prompt)/share/gitprompt.sh"
fi