From de05f255e87df9b06e34277d45e1dd390457240a Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Mon, 30 Jan 2012 09:54:11 +0100 Subject: Corrects commits 1c9fe535: when / todo if exists --- user:hugues/KeyBindings.zsh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'user:hugues') 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' -- cgit v1.2.3