From 46ac6b2c967768aafe50a5446aab2241ddbcff69 Mon Sep 17 00:00:00 2001 From: hugues Date: Sun, 20 Aug 2006 19:50:12 +0000 Subject: Grand ménage dans la conf Zsh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn+ssh://hugues@maison/opt/svn/private/hugues@255 a0e5b806-a6f9-0310-978d-cbce73f8a913 --- .zlogin | 7 +- ".zsh/20_Variables.V\303\251lizy" | 19 ----- 00_Preamble.zsh | 33 ++++++++ 00_Preambule.zsh | 33 -------- 10_Options.zsh | 4 +- 20_Environment.zsh | 81 +++++++++++++++++++ 20_Variables.VZY08001 | 1 - 20_Variables.paranoid | 12 --- 20_Variables.prunelle | 32 -------- 20_Variables.zsh | 81 ------------------- 25_Prompts.zsh | 30 +++---- 40_KeyBindings.zsh | 153 +---------------------------------- 70_Aliases.paranoid | 16 ---- 70_Aliases.prunelle | 13 --- 70_Aliases.zsh | 5 +- 80_Functions.zsh | 23 ++++-- 85_Debug.zsh | 15 ---- 99_Start.zsh | 3 +- host:VZY08001/20_Environment.zsh | 17 ++++ host:VZY08001/40_KeyBindings.zsh | 6 ++ host:VZY08001/70_Aliases.zsh | 6 ++ host:paranoid/20_Environment.zsh | 18 +++++ host:paranoid/70_Aliases.zsh | 16 ++++ host:prunelle/20_Environment.zsh | 32 ++++++++ host:prunelle/70_Aliases.zsh | 13 +++ host:prunelle/README | 2 + user:gagnaire/20_Environment.zsh | 10 +++ user:gagnaire/25_Prompts.zsh | 5 ++ user:hiegel/20_Environment.zsh | 8 ++ user:hiegel/21_PromptsColors.zsh | 7 ++ user:hiegel/25_Prompts.zsh | 4 + user:hiegel/40_KeyBindings.zsh | 164 ++++++++++++++++++++++++++++++++++++++ user:hiegel/zlogin | 9 +++ user:hugues/21_PromptsColors.zsh | 7 ++ user:hugues/40_KeyBindings.zsh | 164 ++++++++++++++++++++++++++++++++++++++ user:hugues/zlogin | 9 +++ 36 files changed, 655 insertions(+), 403 deletions(-) delete mode 100644 ".zsh/20_Variables.V\303\251lizy" create mode 100644 00_Preamble.zsh delete mode 100644 00_Preambule.zsh create mode 100644 20_Environment.zsh delete mode 120000 20_Variables.VZY08001 delete mode 100644 20_Variables.paranoid delete mode 100644 20_Variables.prunelle delete mode 100644 20_Variables.zsh delete mode 100644 70_Aliases.paranoid delete mode 100644 70_Aliases.prunelle create mode 100644 host:VZY08001/20_Environment.zsh create mode 100644 host:VZY08001/40_KeyBindings.zsh create mode 100644 host:VZY08001/70_Aliases.zsh create mode 100644 host:paranoid/20_Environment.zsh create mode 100644 host:paranoid/70_Aliases.zsh create mode 100644 host:prunelle/20_Environment.zsh create mode 100644 host:prunelle/70_Aliases.zsh create mode 100644 host:prunelle/README create mode 100644 user:gagnaire/20_Environment.zsh create mode 100644 user:gagnaire/25_Prompts.zsh create mode 100644 user:hiegel/20_Environment.zsh create mode 100644 user:hiegel/21_PromptsColors.zsh create mode 100644 user:hiegel/25_Prompts.zsh create mode 100644 user:hiegel/40_KeyBindings.zsh create mode 100644 user:hiegel/zlogin create mode 100644 user:hugues/21_PromptsColors.zsh create mode 100644 user:hugues/40_KeyBindings.zsh create mode 100644 user:hugues/zlogin diff --git a/.zlogin b/.zlogin index 7a6934a..7ae436e 100644 --- a/.zlogin +++ b/.zlogin @@ -1,10 +1,5 @@ -which calendar 2>&1 >/dev/null && \ -for i in {1..$COLUMNS} ; do echo -n "_" ; done &&\ -echo &&\ -calendar -A0 | sed "s/^\(......\*.*\)/\1/" &&\ -for i in {1..$COLUMNS} ; do echo -n "_" ; done &&\ -echo "" +[ -f $ZDOTDIR/user:`whoami`/zlogin ] && source $ZDOTDIR/user:`whoami`/zlogin [ -f $ZDOTDIR/.keychain ] && source $ZDOTDIR/.keychain which keychain 2>&1 >/dev/null && keychain --quiet --stop others --inherit any diff --git "a/.zsh/20_Variables.V\303\251lizy" "b/.zsh/20_Variables.V\303\251lizy" deleted file mode 100644 index 00b5ab3..0000000 --- "a/.zsh/20_Variables.V\303\251lizy" +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/zsh -## -## Part of configuration files for Zsh 4 -## by Hugues Hiegel -## -## NO WARRANTY PROVIDED, USE AT YOUR OWN RISKS -## -## You are encouraged to use, modify, and redistribute -## these files with or without this notice. -## - -export PATH=${PATH:+$PATH:}~/souche/tools/bin:/usr/local/urd2/bin:/usr/local/urd2/openrg2_6/mips-linux-uclibc/bin/ -export MANPATH=${MANPATH:+$MANPATH:}/usr/local/urd2/man:~/souche/tools/man:~/souche/tools/share/man -typeset -gU PATH MANPATH - -__PREFIX=/filer1/dev_users/hiegel/souche/tools/ - -# Couleur principale du prompt : jaune. -PS1_USER_SSH=33 diff --git a/00_Preamble.zsh b/00_Preamble.zsh new file mode 100644 index 0000000..b3d794e --- /dev/null +++ b/00_Preamble.zsh @@ -0,0 +1,33 @@ +#!/bin/zsh +## +## Part of configuration files for Zsh 4 +## by Hugues Hiegel +## +## NO WARRANTY PROVIDED, USE AT YOUR OWN RISKS +## +## You are encouraged to use, modify, and redistribute +## these files with or without this notice. +## +## No more core dumps :) +ulimit -c 0 +umask 002 + +## +## sanity +## +[[ -t 0 ]] && /bin/stty erase "^H" intr "^C" susp "^Z" dsusp "^Y" stop "^S" start "^Q" kill "^U" >& /dev/null + + +# Variables utiles + + _color_black=\033[30m + _color_red=\033[31m + _color_green=\033[32m + _color_yellow=\033[33m + _color_blue=\033[34m +_color_magenta=\033[35m + _color_cyan=\033[36m + + _unset_color=\033[0m + _color_bold=\033[1m +_color_underline=\033[4m diff --git a/00_Preambule.zsh b/00_Preambule.zsh deleted file mode 100644 index b3d794e..0000000 --- a/00_Preambule.zsh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/zsh -## -## Part of configuration files for Zsh 4 -## by Hugues Hiegel -## -## NO WARRANTY PROVIDED, USE AT YOUR OWN RISKS -## -## You are encouraged to use, modify, and redistribute -## these files with or without this notice. -## -## No more core dumps :) -ulimit -c 0 -umask 002 - -## -## sanity -## -[[ -t 0 ]] && /bin/stty erase "^H" intr "^C" susp "^Z" dsusp "^Y" stop "^S" start "^Q" kill "^U" >& /dev/null - - -# Variables utiles - - _color_black=\033[30m - _color_red=\033[31m - _color_green=\033[32m - _color_yellow=\033[33m - _color_blue=\033[34m -_color_magenta=\033[35m - _color_cyan=\033[36m - - _unset_color=\033[0m - _color_bold=\033[1m -_color_underline=\033[4m diff --git a/10_Options.zsh b/10_Options.zsh index f9f665f..51c3bc5 100644 --- a/10_Options.zsh +++ b/10_Options.zsh @@ -51,16 +51,16 @@ unsetopt Correct setopt Correct_All unsetopt Equals unsetopt Extended_Glob -unsetopt Extended_History setopt Hash_Cmds setopt Hash_Dirs ## Gestion de l'historique +unsetopt Extended_History setopt Hist_Expire_Dups_First setopt Hist_Ignore_All_Dups setopt Hist_Ignore_Space setopt Hist_No_Functions -setopt Hist_No_Store +unsetopt Hist_No_Store setopt Hist_Reduce_Blanks setopt Inc_Append_History diff --git a/20_Environment.zsh b/20_Environment.zsh new file mode 100644 index 0000000..18269f9 --- /dev/null +++ b/20_Environment.zsh @@ -0,0 +1,81 @@ +#!/bin/zsh +## +## Part of configuration files for Zsh 4 +## by Hugues Hiegel +## +## NO WARRANTY PROVIDED, USE AT YOUR OWN RISKS +## +## You are encouraged to use, modify, and redistribute +## these files with or without this notice. +## + +## +## NDLA: +## +## ma politique pour l'export des variables est très simple : +## si elle a pour vocation d'être utilisée en dehors de Zsh, +## on l'exporte. SInon pas. +## + +## Options pour ``bc'' +export BC_ENV_ARGS="-q" + +## Editeur par défaut +export EDITOR=`which vim` +export VISUAL=$EDITOR +export FCEDIT=$EDITOR + +## Pageur par défaut +export PAGER=less + +## Quelle commande utiliser par défaut ? +export NULLCMD=cat + +[ `which dircolors` >/dev/null 2>&1 ] && eval $(dircolors ~/.dir_colors 2>&-) +export TZ="Europe/Paris" +export TIME_STYLE="+%Y-%b-%d %H:%M" + +## Agent de clefs SSH/GPG +# En principe il a été fait dans le .zlogin, mais si on n'est pas en +# login shell on n'aura pas ces informations. Donc on le fait ici aussi. +[ -f $ZDOTDIR/.keychain ] && source $ZDOTDIR/.keychain + +# Locale en français unicode +export LC_ALL=${LC_ALL:-fr_FR.UTF-8} +export LC_MESSAGES=${LC_MESSAGES:-fr_FR} +unset LANG # Unuseful + +## Variables d'environnement ``classiques'' +# +# L'utilisation de la forme ${VARIABLE:+$VARIABLE:} permet d'accoler ``:'' +# si et seulement si $VARIABLE contient déjà des choses, cela pour éviter +# d'avoir un PATH (p.e.) de la forme : PATH=:/bin +# +export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}~/libs +export PKG_CONFIG_PATH=${PKG_CONFIG_PATH:+$PKG_CONFIG_PATH:}/usr/X11R6/lib/pkgconfig +export PATH=$PATH:~/sbin:~/bin +export MANPATH=$MANPATH:~/man +export INFOPATH=${INFOPATH:+$INFOPATH:}~/info +## Nettoyage des précédentes variables pour supprimer les duplicata +typeset -gU PATH MANPATH INFOPATH PKG_CONFIG_PATH LD_LIBRARY_PATH + +## Trucs à la con spécifiques à Zsh +LOGCHECK=10 # %n has logged on/off .. +REPORTTIME=1 # ``time'' automatique +TIMEFMT='`%J` -- %P cpu + User %U + System %S + Total %E' + +WATCHFMT=$COLOR_BLUECLAIR"%n"$COLOR_END +WATCHFMT=$WATCHFMT" has "$COLOR_YELLOW"%a %l from %M" +WATCH=notme + +WORDCHARS='*?-_~!#$%^.' ## Caractères faisant partie des mots + ## J'ai viré les '/()[]{}' + +## Gestion de l'historique +# Voir le fichier d'Options pour plus de contrôle là-dessus +HISTFILE=$ZDOTDIR/.history.$USER.$HOSTNAME # Pour éviter les conflits de conf +HISTSIZE=42000 +SAVEHIST=42000 diff --git a/20_Variables.VZY08001 b/20_Variables.VZY08001 deleted file mode 120000 index 10b5490..0000000 --- a/20_Variables.VZY08001 +++ /dev/null @@ -1 +0,0 @@ -20_Variables.Vélizy \ No newline at end of file diff --git a/20_Variables.paranoid b/20_Variables.paranoid deleted file mode 100644 index 07f3bad..0000000 --- a/20_Variables.paranoid +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/zsh -## -## Part of configuration files for Zsh 4 -## by Hugues Hiegel -## -## NO WARRANTY PROVIDED, USE AT YOUR OWN RISKS -## -## You are encouraged to use, modify, and redistribute -## these files with or without this notice. -## -#export PRINTER=Gertrude -export PRINTER=Berthe diff --git a/20_Variables.prunelle b/20_Variables.prunelle deleted file mode 100644 index b96764f..0000000 --- a/20_Variables.prunelle +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/zsh -## -## Part of configuration files for Zsh 4 -## by Hugues Hiegel -## -## NO WARRANTY PROVIDED, USE AT YOUR OWN RISKS -## -## You are encouraged to use, modify, and redistribute -## these files with or without this notice. -## - -if ( [ "`uname -s`" = "Darwin" ] ) -then - export DISPLAY=:0 - - ## Fink / DarwinPorts - - MANPATH=/usr/share/man - INFOPATH=/usr/share/info - - for i in usr/X11R6 dp sw ; do - export PATH=$PATH:/$i/bin:/$i/sbin - export MANPATH=$MANPATH:/$i/share/man - export INFOPATH=$INFOPATH:/$i/share/info - done - - typeset -gU PATH MANPATH INFOPATH -fi - -PS1_USER="1" -PS1_USER_SSH="$PS1_USER" -PS1_ROOT="31;1" diff --git a/20_Variables.zsh b/20_Variables.zsh deleted file mode 100644 index 869a5fa..0000000 --- a/20_Variables.zsh +++ /dev/null @@ -1,81 +0,0 @@ -#!/bin/zsh -## -## Part of configuration files for Zsh 4 -## by Hugues Hiegel -## -## NO WARRANTY PROVIDED, USE AT YOUR OWN RISKS -## -## You are encouraged to use, modify, and redistribute -## these files with or without this notice. -## - -## -## NDLA: -## -## ma politique pour l'export des variables est très simple : -## si elle a pour vocation d'être utilisée en dehors de Zsh, -## on l'exporte. SInon pas. -## - -## Options pour ``bc'' -export BC_ENV_ARGS="-q" - -## Editeur par défaut -export EDITOR=`which vim` -export VISUAL=$EDITOR -export FCEDIT=$EDITOR - -## Pageur par défaut -export PAGER=less - -## Quelle commande utiliser par défaut ? -export NULLCMD=cat - -[ `which dircolors` ] && eval $(dircolors ~/.dir_colors 2>&-) -export TZ="Europe/Paris" -export TIME_STYLE="+%Y-%b-%d %H:%M" - -## Agent de clefs SSH/GPG -# En principe il a été fait dans le .zlogin, mais si on n'est pas en -# login shell on n'aura pas ces informations. Donc on le fait ici aussi. -[ -f $ZDOTDIR/.keychain ] && source $ZDOTDIR/.keychain - -# Locale en français unicode -export LC_ALL=${LC_ALL:-fr_FR.UTF-8} -export LC_MESSAGES=${LC_MESSAGES:-fr_FR} -unset LANG # Unuseful - -## Variables d'environnement ``classiques'' -# -# L'utilisation de la forme ${VARIABLE:+$VARIABLE:} permet d'accoler ``:'' -# si et seulement si $VARIABLE contient déjà des choses, cela pour éviter -# d'avoir un PATH (p.e.) de la forme : PATH=:/bin -# -export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}~/libs -export PKG_CONFIG_PATH=${PKG_CONFIG_PATH:+$PKG_CONFIG_PATH:}/usr/X11R6/lib/pkgconfig -export PATH=${PATH:+$PATH:}~/sbin:~/bin -export MANPATH=${MANPATH:+$MANPATH:}/usr/share/man:/usr/local/share/man:~/man -export INFOPATH=${INFOPATH:+$INFOPATH:}/usr/share/info:/usr/local/share/info:~/info -## Nettoyage des précédentes variables pour supprimer les duplicata -typeset -gU PATH MANPATH INFOPATH PKG_CONFIG_PATH LD_LIBRARY_PATH - -## Trucs à la con spécifiques à Zsh -LOGCHECK=10 # %n has logged on/off .. -REPORTTIME=1 # ``time'' automatique -TIMEFMT='`%J` -- %P cpu - User %U - System %S - Total %E' -#WATCHFMT=$COLOR_BLUECLAIR"%n"$COLOR_END -#WATCHFMT=$WATCHFMT" has "$COLOR_YELLOW"%a %l from %M" -#WATCH=notme - -WORDCHARS='*?-._~=&;!#$%^' # délimiteurs de mots - # '()[]{}/' y ont été supprimés - - -## Gestion de l'historique -# Voir le fichier d'Options pour plus de contrôle là-dessus -HISTFILE=$ZDOTDIR/.history -HISTSIZE=42000 -SAVEHIST=42000 diff --git a/25_Prompts.zsh b/25_Prompts.zsh index c2ba379..404db7f 100644 --- a/25_Prompts.zsh +++ b/25_Prompts.zsh @@ -9,14 +9,6 @@ ## these files with or without this notice. ## -## Prompts -# -# Pour plus d'infos sur les paramètres d'expansion du prompt: -# man zshmisc(1) -# -# La définition des prompts est séparée de celles desvariables d'environnement -# classiques pour permettre de configurer, par exemple, les couleurs par défaut -# dans ces fichiers. # Pour personnaliser les couleurs du prompt, configurez ces variables : # - PS1_ROOT pour la couleur du prompt ROOT # - PS1_USER pour la couleur du prompt USER local @@ -31,17 +23,27 @@ ## Couleur par défaut pour le prompt ROOT (c'est super pour sudo, ça...) PS1_ROOT=${PS1_ROOT:-31} -if ( [ "$SSH_TTY" = "" ] ) + +# Couleur par défaut pour les utilisateurs normaux (moi, quoi) +PS1_USER=${PS1_USER:-34} + +if ( [ "$SSH_TTY" != "" ] ) then - # Couleur par défaut pour les utilisateurs normaux (moi, quoi) - PS1_USER=${PS1_USER:-34} -else # Couleur par défaut pour les utilisateurs normaux loggués via SSH # Ça permet de faire une distinction rapide entre les shells locaux # et les shells distants. C'est trop bon, mangez-en ! - PS1_USER=${PS1_USER_SSH:-35} + PS1_USER=${PS1_USER_SSH:-$PS1_USER} fi +## Prompts +# +# Pour plus d'infos sur les paramètres d'expansion du prompt: +# man zshmisc(1) +# +# La définition des prompts est séparée de celles desvariables d'environnement +# classiques pour permettre de configurer, par exemple, les couleurs par défaut +# dans ces fichiers. + ## Le prompt le plus magnifique du monde, et c'est le mien ! # Affiche l'user, l'host, le tty et le pwd. Rien que ça... # Note que pour le pwd, on n'affiche que les 4 derniers dossiers pour éviter @@ -58,7 +60,7 @@ PS3="?# " PS4="+%N:%i> " # Prompt de droite, pour l'heure et le code d'erreur de la dernière commande -RPS1="%(?;;%{%}%?%{%}) %{[0;%(!."$PS1_ROOT"."$PS1_USER")m%}%D{%a%d%b|%H:%M\'%S}%{%}" +RPS1="%(?;;%{["$PS1_USER"m%}%?%{%}) %{[0;%(!."$PS1_ROOT"."$PS1_USER")m%}%D{%a%d%b|%H:%M\'%S}%{%}" # Ultime : prompt de correction :-) SPROMPT="zsh: %{%}%B«%R»%b%{%} ? Vous ne vouliez pas plutôt %{%}%B«%r»%b%{%} ? [%BN%byae] " diff --git a/40_KeyBindings.zsh b/40_KeyBindings.zsh index df166d7..6cdd6f1 100644 --- a/40_KeyBindings.zsh +++ b/40_KeyBindings.zsh @@ -25,8 +25,9 @@ bindkey "" backward-word # ESC left bindkey "[3~" kill-region # ESC del # Pratique pour rehasher rapidement -bindkey -s "r" " rehash\n" -bindkey -s "R" " rehash\n" +bindkey -s "r" "  rehash\n" +# Exécute la commande ``rt'' qui me permet de nettoyer toutes les saletés +bindkey -s "R" "  rt\n" test $TERM = "rxvt" -o $TERM = "xterm" -o $TERM = "aterm" && { @@ -51,151 +52,3 @@ test $TERM = "xterm" && # npo : which-command est sur ESC-? par defaut # Lancez ``bindkey'' pour en savoir plus !! -## Résultat d'un ``bindkey'' - -bindkey "^@" set-mark-command -bindkey "^A" beginning-of-line -bindkey "^B" backward-char -bindkey "^D" delete-char-or-list -bindkey "^E" end-of-line -bindkey "^F" forward-char -bindkey "^G" send-break -bindkey "^H" backward-delete-char -bindkey "^I" expand-or-complete -bindkey "^J" accept-line -bindkey "^K" kill-line -bindkey "^L" clear-screen -bindkey "^M" accept-line -bindkey "^N" down-line-or-history -bindkey "^O" accept-line-and-down-history -bindkey "^P" up-line-or-history -bindkey "^Q" push-line -bindkey "^R" history-incremental-search-backward -bindkey "^S" history-incremental-search-forward -bindkey "^T" transpose-chars -bindkey "^U" kill-whole-line -bindkey "^V" quoted-insert -bindkey "^W" backward-kill-word -bindkey "^X^B" vi-match-bracket -bindkey "^X^F" vi-find-next-char -bindkey "^X^J" vi-join -bindkey "^X^K" kill-buffer -bindkey "^X^N" infer-next-history -bindkey "^X^O" overwrite-mode -bindkey "^X^R" _read_comp -bindkey "^X^U" undo -bindkey "^X^V" vi-cmd-mode -bindkey "^X^X" exchange-point-and-mark -bindkey "^X*" expand-word -bindkey "^X=" what-cursor-position -bindkey "^X?" _complete_debug -bindkey "^XC" _correct_filename -bindkey "^XG" list-expand -bindkey "^Xa" _expand_alias -bindkey "^Xc" _correct_word -bindkey "^Xd" _list_expansions -bindkey "^Xe" _expand_word -bindkey "^Xg" list-expand -bindkey "^Xh" _complete_help -bindkey "^Xm" _most_recent_file -bindkey "^Xn" _next_tags -bindkey "^Xr" history-incremental-search-backward -bindkey "^Xs" history-incremental-search-forward -bindkey "^Xt" _complete_tag -bindkey "^Xu" undo -bindkey "^X~" _bash_list-choices -bindkey "^Y" yank -bindkey "^D" list-choices -bindkey "^G" send-break -bindkey "^H" backward-kill-word -bindkey "^I" self-insert-unmeta -bindkey "^J" self-insert-unmeta -bindkey "^L" clear-screen -bindkey "^M" self-insert-unmeta -bindkey "[3~" kill-region -bindkey "" history-search-backward -bindkey "" history-search-forward -bindkey "" forward-word -bindkey "" backward-word -bindkey "^_" copy-prev-word -bindkey " " magic-space -bindkey "!" expand-history -bindkey "\"" quote-region -bindkey "\$" spell-word -bindkey "'" quote-line #'" -bindkey "," _history-complete-newer -bindkey "-" neg-argument -bindkey "." insert-last-word -bindkey "/" _history-complete-older -bindkey "0" digit-argument -bindkey "1" digit-argument -bindkey "2" digit-argument -bindkey "3" digit-argument -bindkey "4" digit-argument -bindkey "5" digit-argument -bindkey "6" digit-argument -bindkey "7" digit-argument -bindkey "8" digit-argument -bindkey "9" digit-argument -bindkey "<" beginning-of-buffer-or-history -bindkey ">" end-of-buffer-or-history -bindkey "?" which-command -bindkey "A" accept-and-hold -bindkey "B" backward-word -bindkey "C" capitalize-word -bindkey "D" kill-word -bindkey "F" forward-word -bindkey "G" get-line -bindkey "H" run-help -bindkey "L" down-case-word -bindkey "N" history-search-forward -bindkey "OA" up-line-or-history -bindkey "OB" down-line-or-history -bindkey "OC" forward-char -bindkey "OD" backward-char -bindkey "P" history-search-backward -bindkey "Q" push-line -bindkey "S" spell-word -bindkey "T" transpose-words -bindkey "U" up-case-word -bindkey "W" copy-region-as-kill -bindkey "[1~" beginning-of-line -bindkey "[2~" overwrite-mode -bindkey "[3~" delete-char -bindkey "[4~" end-of-line -bindkey "[5~" history-beginning-search-backward-end -bindkey "[6~" history-beginning-search-forward-end -bindkey "" up-line-or-history -bindkey "" down-line-or-history -bindkey "" forward-char -bindkey "" backward-char -bindkey "_" insert-last-word -bindkey "a" accept-and-hold -bindkey "b" backward-word -bindkey "c" capitalize-word -bindkey "d" kill-word -bindkey "f" forward-word -bindkey "g" get-line -bindkey "h" run-help -bindkey "l" down-case-word -bindkey "n" history-search-forward -bindkey "p" history-search-backward -bindkey "q" push-line -bindkey "s" spell-word -bindkey "t" transpose-words -bindkey "u" up-case-word -bindkey "w" copy-region-as-kill -bindkey "x" execute-named-cmd -bindkey "y" yank-pop -bindkey "z" execute-last-named-cmd -bindkey "|" vi-goto-column -bindkey "~" _bash_complete-word -bindkey "^?" backward-kill-word -bindkey "^\" up-history -bindkey "^\" down-history -bindkey "^\" forward-char -bindkey "^\" backward-char -bindkey "^_" undo -bindkey " "-"~" self-insert -bindkey "" backward-delete-char -bindkey "\M-^@"-"\M-" self-insert diff --git a/70_Aliases.paranoid b/70_Aliases.paranoid deleted file mode 100644 index 986ad6b..0000000 --- a/70_Aliases.paranoid +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/zsh -## -## Part of configuration files for Zsh 4 -## by Hugues Hiegel -## -## NO WARRANTY PROVIDED, USE AT YOUR OWN RISKS -## -## You are encouraged to use, modify, and redistribute -## these files with or without this notice. -## - -## Paranoid specifics aliases - -a mailstat='\mailstat -o ~/.procmail/procmail.log | egrep -v "## procmail:"' -a mails='\mailstat -k ~/.procmail/procmail.log | egrep -v "## procmail:" ; cat ~/.procmail/procmail.log >> ~/.procmail/procmail.log.old ; echo -n > ~/.procmail/procmail.log' -a junkmail='mutt -f ~/Mail/junk.gz' diff --git a/70_Aliases.prunelle b/70_Aliases.prunelle deleted file mode 100644 index 900e335..0000000 --- a/70_Aliases.prunelle +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/zsh -## -## Part of configuration files for Zsh 4 -## by Hugues Hiegel -## -## NO WARRANTY PROVIDED, USE AT YOUR OWN RISKS -## -## You are encouraged to use, modify, and redistribute -## these files with or without this notice. -## -a port='sudo port' -a ls='ls -FG' -a aless='open -a /Applications/DarwinPorts/AquaLess.app' diff --git a/70_Aliases.zsh b/70_Aliases.zsh index 523f3a7..9293784 100644 --- a/70_Aliases.zsh +++ b/70_Aliases.zsh @@ -12,16 +12,17 @@ alias a='alias' a una=unalias -a e='emacs' +a e='emacsclient' a ne='emacs -nw' +a v='vim' + a close='eject -t' a rm='rm -i' a mv='mv -i' autoload zmv a mmv='noglob zmv -W' -a cp='cp -a' a apt-get='sudo apt-get' diff --git a/80_Functions.zsh b/80_Functions.zsh index 8940c9e..add97cf 100644 --- a/80_Functions.zsh +++ b/80_Functions.zsh @@ -9,25 +9,36 @@ ## these files with or without this notice. ## -[[ -t 1 ]] && -chpwd() +term_title() { + [[ -t 1 ]] && case $TERM in sun-cmd) - print -Pn "\e]l%n@%m %~\e\\" ;; + print -Pn "\e]l%n@%m %~$1\e\\" ;; *xterm*|rxvt|(k|E|dt)term|gnome-terminal) - print -Pn "\e]0;%n@%m (%l) %~\a" ;; + print -Pn "\e]0;%n@%m (%l) %~$1\a" ;; esac - #print -P "%(/,%78>...>%/,%//)%b" +} + +_chpwd() +{ + term_title +} + +chpwd() +{ + _chpwd + which todo 2>&1 > /dev/null && todo } precmd () { ## [[ -t 1 ]] && # print -nP "%(?,,%{%}Foirage n°%{%}%?\n)%{%}" + _chpwd } preexec () { - #nothing :) + term_title " $1" } diff --git a/85_Debug.zsh b/85_Debug.zsh index 4f245af..53ff080 100644 --- a/85_Debug.zsh +++ b/85_Debug.zsh @@ -49,18 +49,3 @@ exports() fi done } - -preexec() -{ - if ( [ "$DEBUG_MODE" = "yes" ] ) - then - fi -} - -precmd() -{ - if ( [ "$DEBUG_MODE" = "yes" ] ) - then - exports - fi -} diff --git a/99_Start.zsh b/99_Start.zsh index 32d23c7..e6720ed 100644 --- a/99_Start.zsh +++ b/99_Start.zsh @@ -10,4 +10,5 @@ ## ## Hop on rafraîchit le titre de la fenêtre -chpwd +term_title +todo veryhigh diff --git a/host:VZY08001/20_Environment.zsh b/host:VZY08001/20_Environment.zsh new file mode 100644 index 0000000..3050244 --- /dev/null +++ b/host:VZY08001/20_Environment.zsh @@ -0,0 +1,17 @@ +#!/bin/zsh +## +## Part of configuration files for Zsh 4 +## by Hugues Hiegel +## +## NO WARRANTY PROVIDED, USE AT YOUR OWN RISKS +## +## You are encouraged to use, modify, and redistribute +## these files with or without this notice. +## + +export PATH=${PATH:+$PATH:}~/souche_linux_pl/tools/bin:/usr/local/urd2/bin:/usr/local/urd2/openrg2_6/mips-linux-uclibc/bin/ +export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}~/souche_linux_pl/tools/lib +export MANPATH=${MANPATH:+$MANPATH:}/usr/local/urd2/man:~/souche_linux_pl/tools/man:~/souche_linux_pl/tools/share/man +typeset -gU PATH MANPATH + +__PREFIX=/filer1/dev_users/hiegel/souche_linux_pl/tools/ diff --git a/host:VZY08001/40_KeyBindings.zsh b/host:VZY08001/40_KeyBindings.zsh new file mode 100644 index 0000000..43a5750 --- /dev/null +++ b/host:VZY08001/40_KeyBindings.zsh @@ -0,0 +1,6 @@ + +# Lance l'alias ``q'' (voir le fichier d'aliases) pour +# afficher rapidement la pile des patches, avec une marque +# au niveau du dernier patch appliqué. +bindkey -s "q" "  q\n" + diff --git a/host:VZY08001/70_Aliases.zsh b/host:VZY08001/70_Aliases.zsh new file mode 100644 index 0000000..f7e6048 --- /dev/null +++ b/host:VZY08001/70_Aliases.zsh @@ -0,0 +1,6 @@ + +# Marre de se faire avoir avec la reconstruction de la BDD +a cscope='cscope -d' + +# Ptit alias bien pratique, pour afficher rapidos les patches appliqués et ceux qui ne le sont pas +a q='quilt applied ; echo " -- TOP -- " ; quilt unapplied' diff --git a/host:paranoid/20_Environment.zsh b/host:paranoid/20_Environment.zsh new file mode 100644 index 0000000..8cc126e --- /dev/null +++ b/host:paranoid/20_Environment.zsh @@ -0,0 +1,18 @@ +#!/bin/zsh +## +## Part of configuration files for Zsh 4 +## by Hugues Hiegel +## +## NO WARRANTY PROVIDED, USE AT YOUR OWN RISKS +## +## You are encouraged to use, modify, and redistribute +## these files with or without this notice. +## +#export PRINTER=Gertrude +export PRINTER=Berthe + +export MANPATH=:$MANPATH +export PATH=:$PATH +export INFOPATH=:$INFOPATH + +typeset -gU PATH MANPATH INFOPATH PKG_CONFIG_PATH LD_LIBRARY_PATH diff --git a/host:paranoid/70_Aliases.zsh b/host:paranoid/70_Aliases.zsh new file mode 100644 index 0000000..986ad6b --- /dev/null +++ b/host:paranoid/70_Aliases.zsh @@ -0,0 +1,16 @@ +#!/bin/zsh +## +## Part of configuration files for Zsh 4 +## by Hugues Hiegel +## +## NO WARRANTY PROVIDED, USE AT YOUR OWN RISKS +## +## You are encouraged to use, modify, and redistribute +## these files with or without this notice. +## + +## Paranoid specifics aliases + +a mailstat='\mailstat -o ~/.procmail/procmail.log | egrep -v "## procmail:"' +a mails='\mailstat -k ~/.procmail/procmail.log | egrep -v "## procmail:" ; cat ~/.procmail/procmail.log >> ~/.procmail/procmail.log.old ; echo -n > ~/.procmail/procmail.log' +a junkmail='mutt -f ~/Mail/junk.gz' diff --git a/host:prunelle/20_Environment.zsh b/host:prunelle/20_Environment.zsh new file mode 100644 index 0000000..b96764f --- /dev/null +++ b/host:prunelle/20_Environment.zsh @@ -0,0 +1,32 @@ +#!/bin/zsh +## +## Part of configuration files for Zsh 4 +## by Hugues Hiegel +## +## NO WARRANTY PROVIDED, USE AT YOUR OWN RISKS +## +## You are encouraged to use, modify, and redistribute +## these files with or without this notice. +## + +if ( [ "`uname -s`" = "Darwin" ] ) +then + export DISPLAY=:0 + + ## Fink / DarwinPorts + + MANPATH=/usr/share/man + INFOPATH=/usr/share/info + + for i in usr/X11R6 dp sw ; do + export PATH=$PATH:/$i/bin:/$i/sbin + export MANPATH=$MANPATH:/$i/share/man + export INFOPATH=$INFOPATH:/$i/share/info + done + + typeset -gU PATH MANPATH INFOPATH +fi + +PS1_USER="1" +PS1_USER_SSH="$PS1_USER" +PS1_ROOT="31;1" diff --git a/host:prunelle/70_Aliases.zsh b/host:prunelle/70_Aliases.zsh new file mode 100644 index 0000000..900e335 --- /dev/null +++ b/host:prunelle/70_Aliases.zsh @@ -0,0 +1,13 @@ +#!/bin/zsh +## +## Part of configuration files for Zsh 4 +## by Hugues Hiegel +## +## NO WARRANTY PROVIDED, USE AT YOUR OWN RISKS +## +## You are encouraged to use, modify, and redistribute +## these files with or without this notice. +## +a port='sudo port' +a ls='ls -FG' +a aless='open -a /Applications/DarwinPorts/AquaLess.app' diff --git a/host:prunelle/README b/host:prunelle/README new file mode 100644 index 0000000..33e3fd8 --- /dev/null +++ b/host:prunelle/README @@ -0,0 +1,2 @@ +C'est l'iBook d'Hugues :) +Sous Darwin, soit dit en passant... diff --git a/user:gagnaire/20_Environment.zsh b/user:gagnaire/20_Environment.zsh new file mode 100644 index 0000000..971dbe9 --- /dev/null +++ b/user:gagnaire/20_Environment.zsh @@ -0,0 +1,10 @@ +#!/bin/zsh + +unset TIME_STYLE + +REPORTTIME=-1 # ``time'' automatique désactivé + +WORDCHARS='*?-._~=&;!#$%^' # délimiteurs de mots + # '()[]{}/' y ont été supprimés + +PS1_USER=34 # Couleur pour le prompt diff --git a/user:gagnaire/25_Prompts.zsh b/user:gagnaire/25_Prompts.zsh new file mode 100644 index 0000000..29b9ce6 --- /dev/null +++ b/user:gagnaire/25_Prompts.zsh @@ -0,0 +1,5 @@ +#!/bin/zsh + +unset PS1 PS2 PS3 PS4 RPS1 SPROMPT + +PS1="%{[%(!."$PS1_ROOT"."$PS1_USER")m%}%B%~%b%{%} " diff --git a/user:hiegel/20_Environment.zsh b/user:hiegel/20_Environment.zsh new file mode 100644 index 0000000..12982d6 --- /dev/null +++ b/user:hiegel/20_Environment.zsh @@ -0,0 +1,8 @@ +#!/bin/zsh + +if ( [ "$TERM" = "screen" ] ) +then + PS1_USER="34" +fi + +PS1_USER=33 diff --git a/user:hiegel/21_PromptsColors.zsh b/user:hiegel/21_PromptsColors.zsh new file mode 100644 index 0000000..871ce93 --- /dev/null +++ b/user:hiegel/21_PromptsColors.zsh @@ -0,0 +1,7 @@ +#!/bin/zsh + +if ( [ "$TERM" = "screen" ] ) +then + PS1_USER="34" +fi + diff --git a/user:hiegel/25_Prompts.zsh b/user:hiegel/25_Prompts.zsh new file mode 100644 index 0000000..9a99ecc --- /dev/null +++ b/user:hiegel/25_Prompts.zsh @@ -0,0 +1,4 @@ +#!/bin/zsh + +PS1="%{[%(!."$PS1_ROOT"."$PS1_USER")m%}%n%{%}@%{[0;%(!."$PS1_ROOT"."$PS1_USER")m%}%y%{%} %(!.%{[1;"$PS1_ROOT"m%}%d%{%}.%{[1;"$PS1_USER"m%}%~%{%})"${LD_PRELOAD:t:s/lib//:r}" " + diff --git a/user:hiegel/40_KeyBindings.zsh b/user:hiegel/40_KeyBindings.zsh new file mode 100644 index 0000000..199b751 --- /dev/null +++ b/user:hiegel/40_KeyBindings.zsh @@ -0,0 +1,164 @@ +#!/bin/zsh + +## Résultat d'un ``bindkey'' + +bindkey "#" set-mark-command +bindkey "^A" beginning-of-line +bindkey "^B" backward-char +bindkey "^D" delete-char-or-list +bindkey "^E" end-of-line +bindkey "^F" forward-char +bindkey "^G" send-break +bindkey "^H" backward-delete-char +bindkey "^I" expand-or-complete +bindkey "^J" accept-line +bindkey "^K" kill-line +bindkey "^L" clear-screen +bindkey "^M" accept-line +bindkey "^N" down-line-or-history +bindkey "^O" accept-line-and-down-history +bindkey "^P" up-line-or-history +bindkey "^Q" push-line +bindkey "^R" history-incremental-search-backward +bindkey "^S" history-incremental-search-forward +bindkey "^T" transpose-chars +bindkey "^U" kill-whole-line +bindkey "^V" quoted-insert +bindkey "^W" backward-kill-word +bindkey "^X^B" vi-match-bracket +bindkey "^X^F" vi-find-next-char +bindkey "^X^J" vi-join +bindkey "^X^K" kill-buffer +bindkey "^X^N" infer-next-history +bindkey "^X^O" overwrite-mode +bindkey "^X^R" _read_comp +bindkey "^X^U" undo +bindkey "^X^V" vi-cmd-mode +bindkey "^X^X" exchange-point-and-mark +bindkey "^X*" expand-word +bindkey "^X=" what-cursor-position +bindkey "^X?" _complete_debug +bindkey "^XC" _correct_filename +bindkey "^XG" list-expand +bindkey "^Xa" _expand_alias +bindkey "^Xc" _correct_word +bindkey "^Xd" _list_expansions +bindkey "^Xe" _expand_word +bindkey "^Xg" list-expand +bindkey "^Xh" _complete_help +bindkey "^Xm" _most_recent_file +bindkey "^Xn" _next_tags +bindkey "^Xr" history-incremental-search-backward +bindkey "^Xs" history-incremental-search-forward +bindkey "^Xt" _complete_tag +bindkey "^Xu" undo +bindkey "^X~" _bash_list-choices +bindkey "^Y" yank +bindkey "^D" list-choices +bindkey "^G" send-break +bindkey "^H" backward-kill-word +bindkey "^I" self-insert-unmeta +bindkey "^J" self-insert-unmeta +bindkey "^L" clear-screen +bindkey "^M" self-insert-unmeta +bindkey "[3~" kill-region +bindkey "" history-search-backward +bindkey "" history-search-forward +bindkey "" forward-word +bindkey "" backward-word +bindkey "^_" copy-prev-word +bindkey " " magic-space +bindkey "!" expand-history +bindkey "\"" quote-region +bindkey "\$" spell-word +bindkey "'" quote-line #'" +bindkey "," _history-complete-newer +bindkey "-" neg-argument +bindkey "." insert-last-word +bindkey "/" _history-complete-older +bindkey "0" digit-argument +bindkey "1" digit-argument +bindkey "2" digit-argument +bindkey "3" digit-argument +bindkey "4" digit-argument +bindkey "5" digit-argument +bindkey "6" digit-argument +bindkey "7" digit-argument +bindkey "8" digit-argument +bindkey "9" digit-argument +bindkey "<" beginning-of-buffer-or-history +bindkey ">" end-of-buffer-or-history +bindkey "?" which-command +bindkey "A" accept-and-hold +bindkey "B" backward-word +bindkey "C" capitalize-word +bindkey "D" kill-word +bindkey "F" forward-word +bindkey "G" get-line +bindkey "H" run-help +bindkey "L" down-case-word +bindkey "N" history-search-forward +bindkey "OA" up-line-or-history +bindkey "OB" down-line-or-history +bindkey "OC" forward-char +bindkey "OD" backward-char +bindkey "P" history-search-backward +bindkey "Q" push-line +bindkey "S" spell-word +bindkey "T" transpose-words +bindkey "U" up-case-word +bindkey "W" copy-region-as-kill +bindkey "[1~" beginning-of-line +bindkey "[2~" overwrite-mode +bindkey "[3~" delete-char +bindkey "[4~" end-of-line +bindkey "[5~" history-beginning-search-backward-end +bindkey "[6~" history-beginning-search-forward-end +bindkey "" up-line-or-history +bindkey "" down-line-or-history +bindkey "" forward-char +bindkey "" backward-char +bindkey "_" insert-last-word +bindkey "a" accept-and-hold +bindkey "b" backward-word +bindkey "c" capitalize-word +bindkey "d" kill-word +bindkey "f" forward-word +bindkey "g" get-line +bindkey "h" run-help +bindkey "l" down-case-word +bindkey "n" history-search-forward +bindkey "p" history-search-backward +bindkey "q" push-line +bindkey "s" spell-word +bindkey "t" transpose-words +bindkey "u" up-case-word +bindkey "w" copy-region-as-kill +bindkey "x" execute-named-cmd +bindkey "y" yank-pop +bindkey "z" execute-last-named-cmd +bindkey "|" vi-goto-column +bindkey "~" _bash_complete-word +bindkey "^?" backward-kill-word +bindkey "^\" up-history +bindkey "^\" down-history +bindkey "^\" forward-char +bindkey "^\" backward-char +bindkey "^_" undo +bindkey " "-"~" self-insert +bindkey "" backward-delete-char +bindkey "\M-^@"-"\M-" self-insert + +# Raccourcis pour les todo : funny :) +bindkey -s "t" "  todo\n" +bindkey -s "T" "  todo all -c\n" + +bindkey -s "é" " 2>/dev/null " +bindkey -s "2" " 2>&1 " + +bindkey -s "m" "  make\n" +bindkey -s "M" "make " + +bindkey -s "l" "  l\n" +#bindkey -s "L" "  la\n" + diff --git a/user:hiegel/zlogin b/user:hiegel/zlogin new file mode 100644 index 0000000..0fbd0da --- /dev/null +++ b/user:hiegel/zlogin @@ -0,0 +1,9 @@ + +which calendar 2>&1 >/dev/null && \ +for i in {1..$COLUMNS} ; do echo -n "_" ; done && \ +echo && \ +calendar -A0 | sed "s/^\(......\*.*\)/\1/" && \ +for i in {1..$COLUMNS} ; do echo -n "_" ; done && \ +echo "" + + diff --git a/user:hugues/21_PromptsColors.zsh b/user:hugues/21_PromptsColors.zsh new file mode 100644 index 0000000..871ce93 --- /dev/null +++ b/user:hugues/21_PromptsColors.zsh @@ -0,0 +1,7 @@ +#!/bin/zsh + +if ( [ "$TERM" = "screen" ] ) +then + PS1_USER="34" +fi + diff --git a/user:hugues/40_KeyBindings.zsh b/user:hugues/40_KeyBindings.zsh new file mode 100644 index 0000000..199b751 --- /dev/null +++ b/user:hugues/40_KeyBindings.zsh @@ -0,0 +1,164 @@ +#!/bin/zsh + +## Résultat d'un ``bindkey'' + +bindkey "#" set-mark-command +bindkey "^A" beginning-of-line +bindkey "^B" backward-char +bindkey "^D" delete-char-or-list +bindkey "^E" end-of-line +bindkey "^F" forward-char +bindkey "^G" send-break +bindkey "^H" backward-delete-char +bindkey "^I" expand-or-complete +bindkey "^J" accept-line +bindkey "^K" kill-line +bindkey "^L" clear-screen +bindkey "^M" accept-line +bindkey "^N" down-line-or-history +bindkey "^O" accept-line-and-down-history +bindkey "^P" up-line-or-history +bindkey "^Q" push-line +bindkey "^R" history-incremental-search-backward +bindkey "^S" history-incremental-search-forward +bindkey "^T" transpose-chars +bindkey "^U" kill-whole-line +bindkey "^V" quoted-insert +bindkey "^W" backward-kill-word +bindkey "^X^B" vi-match-bracket +bindkey "^X^F" vi-find-next-char +bindkey "^X^J" vi-join +bindkey "^X^K" kill-buffer +bindkey "^X^N" infer-next-history +bindkey "^X^O" overwrite-mode +bindkey "^X^R" _read_comp +bindkey "^X^U" undo +bindkey "^X^V" vi-cmd-mode +bindkey "^X^X" exchange-point-and-mark +bindkey "^X*" expand-word +bindkey "^X=" what-cursor-position +bindkey "^X?" _complete_debug +bindkey "^XC" _correct_filename +bindkey "^XG" list-expand +bindkey "^Xa" _expand_alias +bindkey "^Xc" _correct_word +bindkey "^Xd" _list_expansions +bindkey "^Xe" _expand_word +bindkey "^Xg" list-expand +bindkey "^Xh" _complete_help +bindkey "^Xm" _most_recent_file +bindkey "^Xn" _next_tags +bindkey "^Xr" history-incremental-search-backward +bindkey "^Xs" history-incremental-search-forward +bindkey "^Xt" _complete_tag +bindkey "^Xu" undo +bindkey "^X~" _bash_list-choices +bindkey "^Y" yank +bindkey "^D" list-choices +bindkey "^G" send-break +bindkey "^H" backward-kill-word +bindkey "^I" self-insert-unmeta +bindkey "^J" self-insert-unmeta +bindkey "^L" clear-screen +bindkey "^M" self-insert-unmeta +bindkey "[3~" kill-region +bindkey "" history-search-backward +bindkey "" history-search-forward +bindkey "" forward-word +bindkey "" backward-word +bindkey "^_" copy-prev-word +bindkey " " magic-space +bindkey "!" expand-history +bindkey "\"" quote-region +bindkey "\$" spell-word +bindkey "'" quote-line #'" +bindkey "," _history-complete-newer +bindkey "-" neg-argument +bindkey "." insert-last-word +bindkey "/" _history-complete-older +bindkey "0" digit-argument +bindkey "1" digit-argument +bindkey "2" digit-argument +bindkey "3" digit-argument +bindkey "4" digit-argument +bindkey "5" digit-argument +bindkey "6" digit-argument +bindkey "7" digit-argument +bindkey "8" digit-argument +bindkey "9" digit-argument +bindkey "<" beginning-of-buffer-or-history +bindkey ">" end-of-buffer-or-history +bindkey "?" which-command +bindkey "A" accept-and-hold +bindkey "B" backward-word +bindkey "C" capitalize-word +bindkey "D" kill-word +bindkey "F" forward-word +bindkey "G" get-line +bindkey "H" run-help +bindkey "L" down-case-word +bindkey "N" history-search-forward +bindkey "OA" up-line-or-history +bindkey "OB" down-line-or-history +bindkey "OC" forward-char +bindkey "OD" backward-char +bindkey "P" history-search-backward +bindkey "Q" push-line +bindkey "S" spell-word +bindkey "T" transpose-words +bindkey "U" up-case-word +bindkey "W" copy-region-as-kill +bindkey "[1~" beginning-of-line +bindkey "[2~" overwrite-mode +bindkey "[3~" delete-char +bindkey "[4~" end-of-line +bindkey "[5~" history-beginning-search-backward-end +bindkey "[6~" history-beginning-search-forward-end +bindkey "" up-line-or-history +bindkey "" down-line-or-history +bindkey "" forward-char +bindkey "" backward-char +bindkey "_" insert-last-word +bindkey "a" accept-and-hold +bindkey "b" backward-word +bindkey "c" capitalize-word +bindkey "d" kill-word +bindkey "f" forward-word +bindkey "g" get-line +bindkey "h" run-help +bindkey "l" down-case-word +bindkey "n" history-search-forward +bindkey "p" history-search-backward +bindkey "q" push-line +bindkey "s" spell-word +bindkey "t" transpose-words +bindkey "u" up-case-word +bindkey "w" copy-region-as-kill +bindkey "x" execute-named-cmd +bindkey "y" yank-pop +bindkey "z" execute-last-named-cmd +bindkey "|" vi-goto-column +bindkey "~" _bash_complete-word +bindkey "^?" backward-kill-word +bindkey "^\" up-history +bindkey "^\" down-history +bindkey "^\" forward-char +bindkey "^\" backward-char +bindkey "^_" undo +bindkey " "-"~" self-insert +bindkey "" backward-delete-char +bindkey "\M-^@"-"\M-" self-insert + +# Raccourcis pour les todo : funny :) +bindkey -s "t" "  todo\n" +bindkey -s "T" "  todo all -c\n" + +bindkey -s "é" " 2>/dev/null " +bindkey -s "2" " 2>&1 " + +bindkey -s "m" "  make\n" +bindkey -s "M" "make " + +bindkey -s "l" "  l\n" +#bindkey -s "L" "  la\n" + diff --git a/user:hugues/zlogin b/user:hugues/zlogin new file mode 100644 index 0000000..0fbd0da --- /dev/null +++ b/user:hugues/zlogin @@ -0,0 +1,9 @@ + +which calendar 2>&1 >/dev/null && \ +for i in {1..$COLUMNS} ; do echo -n "_" ; done && \ +echo && \ +calendar -A0 | sed "s/^\(......\*.*\)/\1/" && \ +for i in {1..$COLUMNS} ; do echo -n "_" ; done && \ +echo "" + + -- cgit v1.2.3