summaryrefslogtreecommitdiff
path: root/user:hugues
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2012-04-03 11:14:44 +0200
committerHugues Hiegel <hugues.hiegel@qosmos.com>2012-04-03 11:14:44 +0200
commit8685660438c91e49ed7d65b822acd5bdf483ef53 (patch)
tree1e26c485c8615c44f8b312b4a8e1bf7f8558fc30 /user:hugues
parentd840f71a66cc90548e23670aa7670dc56bc45fa4 (diff)
[Keys] user/net.
Diffstat (limited to 'user:hugues')
-rw-r--r--user:hugues/net:foret/KeyBindings.zsh16
1 files changed, 16 insertions, 0 deletions
diff --git a/user:hugues/net:foret/KeyBindings.zsh b/user:hugues/net:foret/KeyBindings.zsh
new file mode 100644
index 0000000..ad2d1a3
--- /dev/null
+++ b/user:hugues/net:foret/KeyBindings.zsh
@@ -0,0 +1,16 @@
+##
+## Part of configuration files for Zsh 4
+## by Hugues Hiegel <hugues@hiegel.fr>
+##
+## NO WARRANTY PROVIDED, USE AT YOUR OWN RISKS
+##
+## You are encouraged to use, modify, and redistribute
+## these files with or without this notice.
+##
+
+for keymap in viins vicmd emacs
+do
+ bindkey -M $keymap -s '+' 'Q for i in {1..$(__get_prompt_lines)} ; tput cuu1; export NPROC=$(($NPROC + 1))\n'
+ bindkey -M $keymap -s '-' 'Q for i in {1..$(__get_prompt_lines)} ; tput cuu1; [ "$NPROC" -gt 0 ] && export NPROC=$(($NPROC - 1)) || unset NPROC\n'
+done
+