-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
24 lines (20 loc) · 682 Bytes
/
bashrc
File metadata and controls
24 lines (20 loc) · 682 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[[ -s ~/.bashrc_local ]] && source ~/.bashrc_local
[ -z "$PS1" ] && return
function dotfiles-update {
[[ -z $(which git) ]] && return
[[ -d ~/.dotfiles ]] || { echo "Bad installation"; exit 1; }
pushd ~/.dotfiles > /dev/null
git pull --ff-only -q
popd > /dev/null
}
dotfiles-update
bind -r '\C-s'
stty -ixon
export GREP_OPTIONS="--exclude=.svn --exclude=.git"
export EDITOR=vi
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
alias g=git
complete -o bashdefault -o default -o nospace -F _git g
PS1='\h:\W$(__git_ps1 "\[\e[1;31m\]@\[\033[1;33m\]%s\[\e[0m\]")\$ '
. ~/.bash/ctags.sh
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting