summaryrefslogtreecommitdiff
path: root/user:hugues/net:foret/KeyBindings.zsh
blob: ad2d1a327d8a4d4c7304bc21467022b86b756f2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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