Ignore bind complaints if not sourcing install script

This commit is contained in:
Nathan Broadbent
2011-10-19 18:23:33 +08:00
parent 599d491b93
commit f43ca59244

View File

@@ -101,10 +101,10 @@ complete -o nospace -o filenames -F _git_index_tab_completion $git_index_alias
# Cross-shell key bindings # Cross-shell key bindings
_bind(){ _bind(){
if [[ $shell == "zsh" ]]; then if [[ $shell == "zsh" ]]; then # zsh
bindkey -s "$1" "$2" # zsh bindkey -s "$1" "$2"
else else # bash
bind "\"$1\": \"$2\"" # bash bind "\"$1\": \"$2\"" > /dev/null
fi fi
} }