summaryrefslogtreecommitdiff
path: root/user:hugues/GusBindings.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'user:hugues/GusBindings.zsh')
-rw-r--r--user:hugues/GusBindings.zsh39
1 files changed, 21 insertions, 18 deletions
diff --git a/user:hugues/GusBindings.zsh b/user:hugues/GusBindings.zsh
index 1d29f50..7f00197 100644
--- a/user:hugues/GusBindings.zsh
+++ b/user:hugues/GusBindings.zsh
@@ -201,31 +201,33 @@ for keymap in viins vicmd emacs
do
bindkey -M $keymap '^[r' _rehash
- if ( __cmd_exists when )
- then
- bindkey -M $keymap -s '^[w' '^[Q when\n'
- fi
-
- if ( __cmd_exists tickets )
- then
- bindkey -M $keymap -s '^[t' '^[Q tickets\n'
- bindkey -M $keymap -s '^[T' '^[Q !?tickets\n'
- elif ( __cmd_exists todo )
- then
- bindkey -M $keymap -s '^[t' '^[Q todo\n'
- bindkey -M $keymap -s '^[T' '^[Q todo all -c\n'
- fi
-
alias configure="[ ! -e configure ] && ( ./autogen.sh && ./configure ) || ./configure"
bindkey -M $keymap -s '^[c' '^[Q configure\n'
bindkey -M $keymap -s '^[©' '^[Q !?configure\n'
- alias MAKE="[ ! -e Makefile -a ! -e GNUmakefile ] && ( [ ! -e configure ] && [ -e autogen.sh ] && ./autogen.sh || [ -e configure.ac ] && autoreconf --install ; ./configure && make ) || make"
+ MAKE() {
+ if [ ! -e Makefile -a ! -e GNUmakefile ]
+ then
+ if ( [ ! -e configure ] && [ -e autogen.sh ] )
+ then
+ ./autogen.sh
+ elif [ -e configure.ac ]
+ then
+ autoreconf --install
+ if [ -e ./configure ]
+ then
+ ./configure
+ fi
+ fi
+ fi
+ [ -e Makefile -o -e GNUmakefile ] \
+ && make
+ }
bindkey -M $keymap -s '^[m' '^[Q MAKE\n'
bindkey -M $keymap -s '^[M' '^[Q make\n'
bindkey -M $keymap -s '^[l' '^[Q l\n'
-
+ bindkey -M $keymap -s '^[-' '^[Q cd -\n'
bindkey -M $keymap -s '^[ ' '\\ '
bindkey -M $keymap -s '^[g' '^[Q git st .\n'
@@ -235,7 +237,8 @@ do
bindkey -M $keymap -s '^[S' '^[Q sudo !!'
- bindkey -M $keymap -s '^[X' '^[Q kill -USR1 $$\n'
+ bindkey -M $keymap -s '^[x' '^[Q kill -USR1 $$\n'
+ bindkey -M $keymap -s '^[X' '^[Q pkill -USR1 ${SHELL}\n'
bindkey -M $keymap -s '^[^[OA' 'up-line-or-history'
bindkey -M $keymap -s '^[^[OB' 'down-line-or-history'