dotfiles/bash/bashrc

36 lines
932 B
Bash
Raw Normal View History

2010-06-26 11:05:10 +10:00
export CURRENT_SHELL=`which bash`
export DOT_FILES=$HOME/.config
2010-06-26 11:05:10 +10:00
# All things that are both ZSH and Bash compatible
source $DOT_FILES/bash/common
source $DOT_FILES/bash/save-directory
source $DOT_FILES/git/git-completion
alias reload="source ~/.bashrc"
export PS1="\w ♪ "
if [ $system_name == 'Darwin' ]; then
source $DOT_FILES/bash/terminal
fi
2010-06-26 11:05:10 +10:00
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
# else
# . $DOT_FILES/bash/bash_completion
2010-06-26 11:05:10 +10:00
fi
# readline settings
bind "set completion-ignore-case on"
bind "set bell-style none" # No bell, because it's damn annoying
bind "set show-all-if-ambiguous On" # this allows you to automatically show completion without double tab-ing
2009-03-20 00:08:06 +11:00
shopt -s checkwinsize
shopt -s histappend
shopt -s globstar 2>/dev/null # Bash 4 and above only
complete -C $DOT_FILES/bash/rake-completion.rb -o default rake}
# RVM
[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm