diff options
author | hugues <hugues@a0e5b806-a6f9-0310-978d-cbce73f8a913> | 2006-08-20 19:50:12 +0000 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2008-03-07 14:15:09 +0100 |
commit | 46ac6b2c967768aafe50a5446aab2241ddbcff69 (patch) | |
tree | 05c0007a21eaf529518e2bd77f4fb18170139986 | |
parent | 01b231dc56c2335481644728405c7aba037f1f5e (diff) |
Grand ménage dans la conf Zsh
git-svn-id: svn+ssh://hugues@maison/opt/svn/private/hugues@255 a0e5b806-a6f9-0310-978d-cbce73f8a913
29 files changed, 465 insertions, 213 deletions
@@ -1,10 +1,5 @@ -which calendar 2>&1 >/dev/null && \ -for i in {1..$COLUMNS} ; do echo -n "_" ; done &&\ -echo &&\ -calendar -A0 | sed "s/^\(......\*.*\)/[1m\1[0m/" &&\ -for i in {1..$COLUMNS} ; do echo -n "_" ; done &&\ -echo "[0m" +[ -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/00_Preambule.zsh b/00_Preamble.zsh index b3d794e..b3d794e 100644 --- a/00_Preambule.zsh +++ b/00_Preamble.zsh 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_Variables.zsh b/20_Environment.zsh index 869a5fa..18269f9 100644 --- a/20_Variables.zsh +++ b/20_Environment.zsh @@ -31,7 +31,7 @@ export PAGER=less ## Quelle commande utiliser par défaut ? export NULLCMD=cat -[ `which dircolors` ] && eval $(dircolors ~/.dir_colors 2>&-) +[ `which dircolors` >/dev/null 2>&1 ] && eval $(dircolors ~/.dir_colors 2>&-) export TZ="Europe/Paris" export TIME_STYLE="+%Y-%b-%d %H:%M" @@ -53,9 +53,9 @@ unset LANG # Unuseful # 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 +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 @@ -66,16 +66,16 @@ TIMEFMT='`%J` -- %P cpu User %U System %S Total %E' -#WATCHFMT=$COLOR_BLUECLAIR"%n"$COLOR_END -#WATCHFMT=$WATCHFMT" has "$COLOR_YELLOW"%a[0m %l from %M" -#WATCH=notme -WORDCHARS='*?-._~=&;!#$%^' # délimiteurs de mots - # '()[]{}/' y ont été supprimés +WATCHFMT=$COLOR_BLUECLAIR"%n"$COLOR_END +WATCHFMT=$WATCHFMT" has "$COLOR_YELLOW"%a[0m %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 +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/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="%(?;;%{[1;32m%}%?%{[0m%}) %{[0;%(!."$PS1_ROOT"."$PS1_USER")m%}%D{%a%d%b|%H:%M\'%S}%{[0m%}" +RPS1="%(?;;%{["$PS1_USER"m%}%?%{[0m%}) %{[0;%(!."$PS1_ROOT"."$PS1_USER")m%}%D{%a%d%b|%H:%M\'%S}%{[0m%}" # Ultime : prompt de correction :-) SPROMPT="zsh: %{[34m%}%B«%R»%b%{[0m%} ? Vous ne vouliez pas plutôt %{[35m%}%B«%r»%b%{[0m%} ? [%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 "[D" 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 "[A" history-search-backward -bindkey "[B" history-search-forward -bindkey "[C" forward-word -bindkey "[D" 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 "[A" up-line-or-history -bindkey "[B" down-line-or-history -bindkey "[C" forward-char -bindkey "[D" 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 "^\[A" up-history -bindkey "^\[B" down-history -bindkey "^\[C" forward-char -bindkey "^\[D" backward-char -bindkey "^_" undo -bindkey " "-"~" self-insert -bindkey "" backward-delete-char -bindkey "\M-^@"-"\M-" self-insert 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 "%(?,,%{[34;1m%}Foirage n°%{[38;1;45m%}%?\n)%{[0m%}" + _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/.zsh/20_Variables.Vélizy b/host:VZY08001/20_Environment.zsh index 00b5ab3..3050244 100644 --- a/.zsh/20_Variables.Vélizy +++ b/host:VZY08001/20_Environment.zsh @@ -9,11 +9,9 @@ ## 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 +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/tools/ - -# Couleur principale du prompt : jaune. -PS1_USER_SSH=33 +__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/20_Variables.paranoid b/host:paranoid/20_Environment.zsh index 07f3bad..8cc126e 100644 --- a/20_Variables.paranoid +++ b/host:paranoid/20_Environment.zsh @@ -10,3 +10,9 @@ ## #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/70_Aliases.paranoid b/host:paranoid/70_Aliases.zsh index 986ad6b..986ad6b 100644 --- a/70_Aliases.paranoid +++ b/host:paranoid/70_Aliases.zsh diff --git a/20_Variables.prunelle b/host:prunelle/20_Environment.zsh index b96764f..b96764f 100644 --- a/20_Variables.prunelle +++ b/host:prunelle/20_Environment.zsh diff --git a/70_Aliases.prunelle b/host:prunelle/70_Aliases.zsh index 900e335..900e335 100644 --- a/70_Aliases.prunelle +++ b/host:prunelle/70_Aliases.zsh 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%{[0m%} " 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%{[0m%}@%{[0;%(!."$PS1_ROOT"."$PS1_USER")m%}%y%{[0m%} %(!.%{[1;"$PS1_ROOT"m%}%d%{[0m%}.%{[1;"$PS1_USER"m%}%~%{[0m%})"${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 "[A" history-search-backward +bindkey "[B" history-search-forward +bindkey "[C" forward-word +bindkey "[D" 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 "[A" up-line-or-history +bindkey "[B" down-line-or-history +bindkey "[C" forward-char +bindkey "[D" 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 "^\[A" up-history +bindkey "^\[B" down-history +bindkey "^\[C" forward-char +bindkey "^\[D" 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/^\(......\*.*\)/[1m\1[0m/" && \ +for i in {1..$COLUMNS} ; do echo -n "_" ; done && \ +echo "[0m" + + 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 "[A" history-search-backward +bindkey "[B" history-search-forward +bindkey "[C" forward-word +bindkey "[D" 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 "[A" up-line-or-history +bindkey "[B" down-line-or-history +bindkey "[C" forward-char +bindkey "[D" 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 "^\[A" up-history +bindkey "^\[B" down-history +bindkey "^\[C" forward-char +bindkey "^\[D" 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/^\(......\*.*\)/[1m\1[0m/" && \ +for i in {1..$COLUMNS} ; do echo -n "_" ; done && \ +echo "[0m" + + |