-
Notifications
You must be signed in to change notification settings - Fork 2
/
.bash_profile
58 lines (48 loc) · 1.25 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
alias ll='ls -Gal'
alias l='ll'
alias be='bundle exec'
alias git-sub-pull='git pull --rebase && git submodule sync && git submodule update -i --recursive'
function git-sub-rm
{
git rm --cached $1
git config -f .git/config --remove-section submodule.$1
git config -f .gitmodules --remove-section submodule.$1
rm -rf $1
}
function git-resolve
{
vim `git st -s | grep ^UU | awk '{ print $2 }'`
}
function source_recursively
{
for i in $1/*; do
if [ -d $i ]; then
source_recursively $i
else
source $i
fi
done
}
source_recursively "$HOME/.bash"
p() {
cd /projects/`ls /projects | grep $1 | head -1`
}
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
export PATH=$HOME/.bin:/usr/local/bin:/usr/local/sbin:$HOME/.local/node/bin:$PATH
export EDITOR=vim
export TERM=xterm-256color
complete -cf sudo
# Platform-specific bits
if [ `uname` == "Linux" ]; then
export SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
elif [ `uname` == "Darwin" ]; then
alias mvim="open -a MacVim $1"
fi
# {{{
# Node Completion - Auto-generated, do not touch.
shopt -s progcomp
for f in $(command ls ~/.node-completion); do
f="$HOME/.node-completion/$f"
test -f "$f" && . "$f"
done
# }}}