Skip to content

Commit

Permalink
Minor completion changes in bashrc
Browse files Browse the repository at this point in the history
  • Loading branch information
Todd Werth committed Aug 1, 2010
1 parent fde4a53 commit d6b27a2
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions etc/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,10 @@ hf(){
}



# Misc -------------------------------------------------------------
shopt -s checkwinsize # After each command, checks the windows size and changes lines and columns

# bash completion settings (actually, these are readline settings)
# Completion -------------------------------------------------------
bind "set completion-ignore-case on" # note: bind used instead of sticking these in .inputrc
bind "set bell-style none" # no bell
bind "set show-all-if-ambiguous On" # show list automatically, without double tab
bind "set bell-style none" # no bell

# Turn on advanced bash completion if the file exists
# Get it here: http://www.caliban.org/bash/index.shtml#completion) or
Expand All @@ -65,14 +61,22 @@ if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
fi

# git completion
source ~/cl/bin/git-completion.bash

# Add completion to source and .
complete -F _command source
complete -F _command .


# Misc -------------------------------------------------------------
shopt -s checkwinsize # After each command, checks the windows size and changes lines and columns

# Use vi command mode
#bind "set editing-mode vi"
set -o vi
#bind -m vi-command -r 'v'

# git completion
source ~/cl/bin/git-completion.bash

# Prompts ----------------------------------------------------------
#git_dirty_flag() {
Expand Down

0 comments on commit d6b27a2

Please sign in to comment.