Ignore bindings if not defined
This commit is contained in:
@@ -101,11 +101,13 @@ complete -o nospace -o filenames -F _git_index_tab_completion $git_index_alias
|
||||
|
||||
# Cross-shell key bindings
|
||||
_bind(){
|
||||
if [ -n "$1" ]; then
|
||||
if [[ $shell == "zsh" ]]; then # zsh
|
||||
bindkey -s "$1" "$2"
|
||||
else # bash
|
||||
bind "\"$1\": \"$2\""
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
case "$TERM" in
|
||||
|
||||
Reference in New Issue
Block a user