From 445fef42e679f5f0e69838b0891c8ad94c2c6696 Mon Sep 17 00:00:00 2001 From: hugues Date: Sun, 27 Aug 2006 16:57:57 +0000 Subject: =?utf-8?q?Update. =20Mise=20=C3=A0=20jour=20de=20la=20gestion=20des=20couleurs=20du=20prompt. =20Et=20en=20plus=20j'ai=20vir=C3=A9=20les=20diverses=20confs=20=C3=A0=20la=20con.?= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------1.5.4.1" This is a multi-part message in MIME format. --------------1.5.4.1 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: 8bit git-svn-id: svn+ssh://hugues@maison/opt/svn/private/hugues@260 a0e5b806-a6f9-0310-978d-cbce73f8a913 --- 25_Prompts.zsh | 42 +++++++--- 40_KeyBindings.zsh | 164 +++++++++++++++++++++++++++++++++++++++ host:VZY08001/20_Environment.zsh | 17 ---- host:VZY08001/40_KeyBindings.zsh | 6 -- host:VZY08001/70_Aliases.zsh | 6 -- 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 --- user:root | 1 - 16 files changed, 195 insertions(+), 428 deletions(-) delete mode 100644 host:VZY08001/20_Environment.zsh delete mode 100644 host:VZY08001/40_KeyBindings.zsh delete mode 100644 host:VZY08001/70_Aliases.zsh delete mode 100644 user:gagnaire/20_Environment.zsh delete mode 100644 user:gagnaire/25_Prompts.zsh delete mode 100644 user:hiegel/20_Environment.zsh delete mode 100644 user:hiegel/21_PromptsColors.zsh delete mode 100644 user:hiegel/25_Prompts.zsh delete mode 100644 user:hiegel/40_KeyBindings.zsh delete mode 100644 user:hiegel/zlogin delete mode 100644 user:hugues/21_PromptsColors.zsh delete mode 100644 user:hugues/40_KeyBindings.zsh delete mode 100644 user:hugues/zlogin delete mode 120000 user:root diff --git a/25_Prompts.zsh b/25_Prompts.zsh index 404db7f..1c48108 100644 --- a/25_Prompts.zsh +++ b/25_Prompts.zsh @@ -14,18 +14,24 @@ # - PS1_USER pour la couleur du prompt USER local # - PS1_USER_SSH pour la couleur du prompt USER distant -#color_red=31 -#color_green=32 -#color_yellow=33 -#color_blue=34 -#color_magenta=35 -#color_cyan=36 +C_="%{[" +_C="m%}" + +COLOR_RSET=0 +COLOR_BOLD=1 +COLOR_LINE=4 +COLOR_RED=31 +COLOR_GREEN=32 +COLOR_YELLOW=33 +COLOR_BLUE=34 +COLOR_MAGENTA=35 +COLOR_CYAN=36 ## Couleur par défaut pour le prompt ROOT (c'est super pour sudo, ça...) -PS1_ROOT=${PS1_ROOT:-31} +PS1_ROOT=${PS1_ROOT:-$COLOR_RED} # Couleur par défaut pour les utilisateurs normaux (moi, quoi) -PS1_USER=${PS1_USER:-34} +PS1_USER=${PS1_USER:-$COLOR_BLUE} if ( [ "$SSH_TTY" != "" ] ) then @@ -35,6 +41,20 @@ then PS1_USER=${PS1_USER_SSH:-$PS1_USER} fi +PS1_COLOR="%(!.$PS1_ROOT.$PS1_USER)" + +# COULEURS DU PROMPT +# La classe. + +PATHCOLOR="$C_$COLOR_RSET;$PS1_COLOR$_C" +USERCOLOR="$C_$COLOR_RSET;$PS1_COLOR$_C" +HOSTCOLOR="$C_$COLOR_RSET;$PS1_COLOR$_C" +TERMCOLOR="$C_$COLOR_RSET;$COLOR_CYAN$_C" +ERRRCOLOR="$C_$COLOR_RED$_C" +RESET="$C_$COLOR_RSET$_C" +MISC="$C_$COLOR_RSET;$COLOR_BOLD;$PS1_COLOR$_C" + + ## Prompts # # Pour plus d'infos sur les paramètres d'expansion du prompt: @@ -48,7 +68,7 @@ fi # 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 # de pourrir le fenêtre de terminal avec un prompt à rallonge. -PS1="%{[%(!."$PS1_ROOT"."$PS1_USER")m%}%n%{[1;%(!."$PS1_ROOT"."$PS1_USER")m%}@%{[0;%(!."$PS1_ROOT"."$PS1_USER")m%}%m%{%} (%{%}%y%{%}) [%(!.%{["$PS1_ROOT"m%}%d%{%}.%{["$PS1_USER"m%}%(5~:.../:)%4~%{%})]"${LD_PRELOAD:t:s/lib//:r}" %h%{[%(!."$PS1_ROOT";1."$PS1_USER")m%}#%{%} " +PS1=$USERCOLOR"%n"$MISC"@"$HOSTCOLOR"%m"$RESET" ("$TERMCOLOR"%y"$RESET") ["$PATHCOLOR"%(!.%d.%(5~:.../:)%4~"$RESET"]"${LD_PRELOAD:t:s/lib//:r}" %h"$MISC"#"$RESET" " # Prompt level 2 PS2="%{%}%B%_%b%{%}%B>%b%{%} " @@ -60,8 +80,8 @@ PS3="?# " PS4="+%N:%i> " # Prompt de droite, pour l'heure et le code d'erreur de la dernière commande -RPS1="%(?;;%{["$PS1_USER"m%}%?%{%}) %{[0;%(!."$PS1_ROOT"."$PS1_USER")m%}%D{%a%d%b|%H:%M\'%S}%{%}" +RPS1="%(?..$ERRRCOLOR%?$COLOR_RSET) %{[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] " +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 6cdd6f1..fb16635 100644 --- a/40_KeyBindings.zsh +++ b/40_KeyBindings.zsh @@ -52,3 +52,167 @@ test $TERM = "xterm" && # npo : which-command est sur ESC-? par defaut # Lancez ``bindkey'' pour en savoir plus !! +#!/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/host:VZY08001/20_Environment.zsh b/host:VZY08001/20_Environment.zsh deleted file mode 100644 index 3050244..0000000 --- a/host:VZY08001/20_Environment.zsh +++ /dev/null @@ -1,17 +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_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 deleted file mode 100644 index 43a5750..0000000 --- a/host:VZY08001/40_KeyBindings.zsh +++ /dev/null @@ -1,6 +0,0 @@ - -# 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 deleted file mode 100644 index f7e6048..0000000 --- a/host:VZY08001/70_Aliases.zsh +++ /dev/null @@ -1,6 +0,0 @@ - -# 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/user:gagnaire/20_Environment.zsh b/user:gagnaire/20_Environment.zsh deleted file mode 100644 index 971dbe9..0000000 --- a/user:gagnaire/20_Environment.zsh +++ /dev/null @@ -1,10 +0,0 @@ -#!/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 deleted file mode 100644 index 29b9ce6..0000000 --- a/user:gagnaire/25_Prompts.zsh +++ /dev/null @@ -1,5 +0,0 @@ -#!/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 deleted file mode 100644 index 12982d6..0000000 --- a/user:hiegel/20_Environment.zsh +++ /dev/null @@ -1,8 +0,0 @@ -#!/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 deleted file mode 100644 index 871ce93..0000000 --- a/user:hiegel/21_PromptsColors.zsh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/zsh - -if ( [ "$TERM" = "screen" ] ) -then - PS1_USER="34" -fi - diff --git a/user:hiegel/25_Prompts.zsh b/user:hiegel/25_Prompts.zsh deleted file mode 100644 index 9a99ecc..0000000 --- a/user:hiegel/25_Prompts.zsh +++ /dev/null @@ -1,4 +0,0 @@ -#!/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 deleted file mode 100644 index 199b751..0000000 --- a/user:hiegel/40_KeyBindings.zsh +++ /dev/null @@ -1,164 +0,0 @@ -#!/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 deleted file mode 100644 index 0fbd0da..0000000 --- a/user:hiegel/zlogin +++ /dev/null @@ -1,9 +0,0 @@ - -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 deleted file mode 100644 index 871ce93..0000000 --- a/user:hugues/21_PromptsColors.zsh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/zsh - -if ( [ "$TERM" = "screen" ] ) -then - PS1_USER="34" -fi - diff --git a/user:hugues/40_KeyBindings.zsh b/user:hugues/40_KeyBindings.zsh deleted file mode 100644 index 199b751..0000000 --- a/user:hugues/40_KeyBindings.zsh +++ /dev/null @@ -1,164 +0,0 @@ -#!/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 deleted file mode 100644 index 0fbd0da..0000000 --- a/user:hugues/zlogin +++ /dev/null @@ -1,9 +0,0 @@ - -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:root b/user:root deleted file mode 120000 index 5adfc80..0000000 --- a/user:root +++ /dev/null @@ -1 +0,0 @@ -user:hugues \ No newline at end of file -- cgit v1.2.3