2010-06-30 14:54:06 +10:00
|
|
|
[[ -f /etc/bash_completion ]] && source /etc/bash_completion
|
2010-06-29 22:20:19 +10:00
|
|
|
|
|
|
|
# readline settings
|
2010-11-23 00:40:55 +11:00
|
|
|
case "$-" in
|
|
|
|
*i*)
|
|
|
|
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
|
|
|
|
bind '"\e\e[C": forward-word'
|
|
|
|
bind '"\e\e[D": backward-word'
|
|
|
|
esac
|
2010-06-29 22:20:19 +10:00
|
|
|
|
2010-06-30 21:19:24 +10:00
|
|
|
shopt -s checkwinsize histappend cdable_vars extglob nullglob cdspell cmdhist hostcomplete
|
|
|
|
|
|
|
|
# Bash 4 and above only
|
2010-11-23 00:40:55 +11:00
|
|
|
shopt -s globstar autocd checkjobs 2>/dev/null
|
2010-06-29 22:20:19 +10:00
|
|
|
|
2020-08-23 11:27:51 +10:00
|
|
|
complete -C $HOME/.dotfiles/bash/rake-completion.rb -o default rake}
|
2010-06-30 14:54:06 +10:00
|
|
|
|
2010-11-22 22:32:35 +11:00
|
|
|
alias reload="source ~/.bashrc"
|