diff options
| author | Hugues Hiegel <hugues.hiegel@orange.com> | 2025-09-10 09:04:29 +0200 |
|---|---|---|
| committer | Hugues Hiegel <hugues.hiegel@orange.com> | 2025-09-10 09:04:29 +0200 |
| commit | 16ece8277b08a6d643f854d2e231da5e97b1a641 (patch) | |
| tree | b26de41a8c75bf2f931208610ebb128cd8c54e36 /user:hugues/GusBindings.zsh | |
| parent | 663f69fcd282113f46c8c93c0342fc222de1ebb3 (diff) | |
Gros commit dégueulasse.orange
Diffstat (limited to 'user:hugues/GusBindings.zsh')
| -rw-r--r-- | user:hugues/GusBindings.zsh | 39 |
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' |
