dotfiles/bash/bashrc

36 lines
932 B
Bash

export CURRENT_SHELL=`which bash`
export DOT_FILES=$HOME/.config
# 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
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
# else
# . $DOT_FILES/bash/bash_completion
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
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