-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbashrc
More file actions
58 lines (46 loc) · 1.71 KB
/
bashrc
File metadata and controls
58 lines (46 loc) · 1.71 KB
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
# ----------------------------------------------------------------------
# PATH
# ----------------------------------------------------------------------
PATH="/usr/local/bin:$PATH"
test -d "$HOME/.bin" && PATH="$HOME/.bin:$PATH"
test -d "$HOME/bin" && PATH="$HOME/bin:$PATH"
# export NODE_PATH="/usr/local/lib/node:/usr/local/lib/node_modules"
# TOOLS
export GREP_OPTIONS="--color"
# ----------------------------------------------------------------------
# EDITOR
# ----------------------------------------------------------------------
export EDITOR='vi'
# export EDITOR='mvim -f -c "au VimLeave * !open -a Terminal"'
# ----------------------------------------------------------------------
# COMPLETION
# ----------------------------------------------------------------------
if [ -f /usr/local/etc/bash_completion ]; then
. /usr/local/etc/bash_completion
source ~/.git-completion.sh
fi
# ----------------------------------------------------------------------
# GIT
# ----------------------------------------------------------------------
parse_git_branch () {
git rev-parse --abbrev-ref HEAD
}
alias git=hub
alias g=git
alias gp="git add --all --patch"
alias gst="git status"
alias s="git status -sb $argv"
alias d="git diff -M $argv"
alias gh="git help"
alias revspec="run-command-on-git-revisions origin/master master 'rspec spec'"
# ----------------------------------------------------------------------
# PROMPT, ETC.
# ----------------------------------------------------------------------
PS1="$(parse_git_branch) \W \$ "
alias ls="ls -lh"
export RACK_ENV='development'
if [[ -e /usr/local/opt/chruby/share/chruby/chruby.sh ]]; then
source /usr/local/opt/chruby/share/chruby/chruby.sh
fi
#EOF .bashrc
. "$HOME/.cargo/env"