summaryrefslogtreecommitdiff
path: root/user:hugues
diff options
context:
space:
mode:
Diffstat (limited to 'user:hugues')
-rw-r--r--user:hugues/Aliases.zsh19
-rw-r--r--user:hugues/Environment.zsh2
-rw-r--r--user:hugues/GusBindings.zsh39
3 files changed, 27 insertions, 33 deletions
diff --git a/user:hugues/Aliases.zsh b/user:hugues/Aliases.zsh
index 773e2f9..a5e00b9 100644
--- a/user:hugues/Aliases.zsh
+++ b/user:hugues/Aliases.zsh
@@ -10,20 +10,10 @@
a -g ¬ISO='LC_ALL=fr_FR'
a -g ¬UTF='LC_ALL=fr_FR.UTF-8'
-a -g ...=../..
-a -g ....=../../..
-a -g .....=../../../..
-a -g ......=../../../../..
-a -g .......=../../../../../..
-a -g ........=../../../../../../..
-a -g .........=../../../../../../../..
-a -g ..........=../../../../../../../../..
-a -g ...........=../../../../../../../../../..
-a -g ............=../../../../../../../../../../..
-a -g .............=../../../../../../../../../../../..
-a -g ..............=../../../../../../../../../../../../..
-a -g ...............=../../../../../../../../../../../../../..
-a -g ................=../../../../../../../../../../../../../../..
+for updir in {2..5}
+do
+ a -g ${(l:$updir::.:)}.=${(l:$(( ($updir - 1) * 3 ))::../:)}..
+done
a -g STDBUF="stdbuf -i0 -oL"
@@ -57,6 +47,7 @@ where() { cd $(dirname $(readlink -f $(which $1))) }
__normal_user && __cmd_exists apt-get && a apt-get='sudo apt-get'
__normal_user && __cmd_exists apt && a apt='sudo apt'
+__normal_user && __cmd_exists nala && a nala='sudo nala'
__normal_user && __cmd_exists pacman && a pacman='sudo pacman'
__normal_user && __cmd_exists yum && a yum='sudo yum'
diff --git a/user:hugues/Environment.zsh b/user:hugues/Environment.zsh
index b7561df..5cf163c 100644
--- a/user:hugues/Environment.zsh
+++ b/user:hugues/Environment.zsh
@@ -45,7 +45,7 @@ do
[ -d /usr/$i/git-core ] && export PATH=$PATH:/usr/$i/git-core
done
-[ -d ~/.local/bin ] && PATH=$PATH:~/.local/bin
+[ -d ~/.local/bin ] && PATH=~/.local/bin:$PATH
# Couleurs pour grep --color=auto
export GREP_COLOR=$color[yellow]\;$color[bold]
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'