diff options
-rw-r--r-- | user:hugues/KeyBindings.zsh | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/user:hugues/KeyBindings.zsh b/user:hugues/KeyBindings.zsh index ac25d85..4cb44c5 100644 --- a/user:hugues/KeyBindings.zsh +++ b/user:hugues/KeyBindings.zsh @@ -201,13 +201,16 @@ do bindkey -M $keymap -s 'r' 'Q rehash\n' bindkey -M $keymap -s 'R' 'Q reset\n' - __cmd_exists when && \ - bindkey -M $keymap -s 'w' 'Q when\n' + if ( __cmd_exists when ) + then + bindkey -M $keymap -s 'w' 'Q when\n' + fi - __cmd_exists todo && ( - bindkey -M $keymap -s 't' 'Q todo\n' - bindkey -M $keymap -s 'T' 'Q todo all -c\n' - ) + if ( __cmd_exists todo ) + then + bindkey -M $keymap -s 't' 'Q todo\n' + bindkey -M $keymap -s 'T' 'Q todo all -c\n' + fi bindkey -M $keymap -s 'c' 'Q ./configure\n' bindkey -M $keymap -s '©' 'Q !?configure\n' |