2010-06-26 11:05:10 +10:00
|
|
|
export CURRENT_SHELL=`which bash`
|
2010-06-25 17:02:29 +10:00
|
|
|
export DOT_FILES=$HOME/.config
|
2010-06-26 11:05:10 +10:00
|
|
|
|
2010-06-27 01:12:01 +10:00
|
|
|
# All things that are both ZSH and Bash compatible
|
|
|
|
source $DOT_FILES/bash/common
|
2010-06-25 17:02:29 +10:00
|
|
|
source $DOT_FILES/bash/save-directory
|
2010-06-27 01:12:01 +10:00
|
|
|
source $DOT_FILES/git/git-completion
|
|
|
|
|
|
|
|
alias reload="source ~/.bashrc"
|
2010-06-25 17:02:29 +10:00
|
|
|
|
2010-06-27 01:12:01 +10:00
|
|
|
export PS1="\w ♪ "
|
2008-12-17 23:32:26 +11:00
|
|
|
|
2009-04-26 16:55:34 +10:00
|
|
|
if [ $system_name == 'Darwin' ]; then
|
2010-06-25 17:02:29 +10:00
|
|
|
source $DOT_FILES/bash/terminal
|
2009-04-26 16:55:34 +10:00
|
|
|
fi
|
|
|
|
|
2010-06-26 11:05:10 +10:00
|
|
|
if [ -f /etc/bash_completion ]; then
|
|
|
|
. /etc/bash_completion
|
2010-06-26 11:27:40 +10:00
|
|
|
# else
|
|
|
|
# . $DOT_FILES/bash/bash_completion
|
2010-06-26 11:05:10 +10:00
|
|
|
fi
|
2008-08-08 17:04:10 +10:00
|
|
|
|
|
|
|
# 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
|
2008-08-08 17:04:10 +10:00
|
|
|
shopt -s histappend
|
2010-06-25 17:02:29 +10:00
|
|
|
shopt -s globstar 2>/dev/null # Bash 4 and above only
|
2008-08-08 17:04:10 +10:00
|
|
|
|
2010-06-28 09:41:56 +10:00
|
|
|
complete -C $DOT_FILES/bash/rake-completion.rb -o default rake}
|
|
|
|
|
|
|
|
# RVM
|
|
|
|
[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
|