summaryrefslogtreecommitdiff
path: root/user:hugues
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2012-01-24 15:30:13 +0100
committerHugues Hiegel <hugues.hiegel@qosmos.com>2012-01-24 15:30:13 +0100
commit1c9fe535aef45739bf2f34178ba642fd4ffcbde0 (patch)
treef042bb03dc7a0e070f3642edb36ab53d1f7435e3 /user:hugues
parent4cb6c72b1a2a0e10da9dddb1e70150232de688af (diff)
[Funcs] when / todo if exists
Diffstat (limited to 'user:hugues')
-rw-r--r--user:hugues/KeyBindings.zsh5
1 files changed, 4 insertions, 1 deletions
diff --git a/user:hugues/KeyBindings.zsh b/user:hugues/KeyBindings.zsh
index 60648c7..ff23dac 100644
--- a/user:hugues/KeyBindings.zsh
+++ b/user:hugues/KeyBindings.zsh
@@ -201,10 +201,13 @@ do
bindkey -M $keymap -s 'r' 'Q rehash\n'
bindkey -M $keymap -s 'R' 'Q reset\n'
- bindkey -M $keymap -s 'w' 'Q birthdays\n'
+ cmd_exists when && \
+ bindkey -M $keymap -s 'w' 'Q when\n'
+ cmd_exists todo && (
bindkey -M $keymap -s 't' 'Q todo\n'
bindkey -M $keymap -s 'T' 'Q todo all -c\n'
+ )
bindkey -M $keymap -s 'c' 'Q ./configure\n'
bindkey -M $keymap -s '©' 'Q !?configure\n'