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
_bind(){
if [[ $shell == "zsh" ]]; then
bindkey -s "$1" "$2" # zsh
else
bind "\"$1\": \"$2\"" # bash
if [[ $shell == "zsh" ]]; then # zsh
bindkey -s "$1" "$2"
else # bash
bind "\"$1\": \"$2\"" > /dev/null
fi
}