From fb8e6a413979695cf315b259d84f77abc5c629db Mon Sep 17 00:00:00 2001 From: hugues Date: Wed, 14 Jun 2006 22:04:51 +0000 Subject: Zsh power !! git-svn-id: svn+ssh://hugues@maison/opt/svn/private/hugues@245 a0e5b806-a6f9-0310-978d-cbce73f8a913 --- .history | 1054 +++++++++++++++++++++++++++++++++ .zcompdump | 1167 +++++++++++++++++++++++++++++++++++++ .zlogin | 15 +- ".zsh/01_Exports.V\303\251lizy" | 9 - ".zsh/20_Variables.V\303\251lizy" | 10 + .zshrc | 1 + 00_Preambule.zsh | 14 + 01_Exports.VZY08001 | 1 - 01_Exports.paranoid | 3 - 01_Exports.prunelle | 21 - 01_Exports.zsh | 62 -- 02_Aliases.paranoid | 7 - 02_Aliases.prunelle | 4 - 02_Aliases.zsh | 48 -- 02_Options.zsh | 44 -- 03_Completion.zsh | 53 -- 04_KeyBindings.zsh | 38 -- 05_Functions.zsh | 21 - 10_Options.zsh | 63 ++ 20_Variables.VZY08001 | 1 + 20_Variables.paranoid | 3 + 20_Variables.prunelle | 23 + 20_Variables.zsh | 72 +++ 25_Prompts.zsh | 56 ++ 30_Completion.zsh | 52 ++ 40_KeyBindings.zsh | 98 ++++ 50_Debug.zsh | 57 -- 70_Aliases.paranoid | 7 + 70_Aliases.prunelle | 4 + 70_Aliases.zsh | 46 ++ 80_Functions.zsh | 24 + 85_Debug.zsh | 57 ++ 99_Start.zsh | 4 +- 33 files changed, 2760 insertions(+), 379 deletions(-) create mode 100644 .history create mode 100644 .zcompdump delete mode 100644 ".zsh/01_Exports.V\303\251lizy" create mode 100644 ".zsh/20_Variables.V\303\251lizy" delete mode 120000 01_Exports.VZY08001 delete mode 100644 01_Exports.paranoid delete mode 100644 01_Exports.prunelle delete mode 100644 01_Exports.zsh delete mode 100644 02_Aliases.paranoid delete mode 100644 02_Aliases.prunelle delete mode 100644 02_Aliases.zsh delete mode 100644 02_Options.zsh delete mode 100644 03_Completion.zsh delete mode 100644 04_KeyBindings.zsh delete mode 100644 05_Functions.zsh create mode 100644 10_Options.zsh create mode 120000 20_Variables.VZY08001 create mode 100644 20_Variables.paranoid create mode 100644 20_Variables.prunelle create mode 100644 20_Variables.zsh create mode 100644 25_Prompts.zsh create mode 100644 30_Completion.zsh create mode 100644 40_KeyBindings.zsh delete mode 100644 50_Debug.zsh create mode 100644 70_Aliases.paranoid create mode 100644 70_Aliases.prunelle create mode 100644 70_Aliases.zsh create mode 100644 80_Functions.zsh create mode 100644 85_Debug.zsh diff --git a/.history b/.history new file mode 100644 index 0000000..e51188d --- /dev/null +++ b/.history @@ -0,0 +1,1054 @@ +su gagnaire +which chpwd +run-help chpwd +run-help lsls +bindkey "h" +bindkey| grep rehash +bindkey| grep -i rehash +bindkey| less +echo "teststeestes fdhsqjfkldhsqfjdsklfhdjfhdsqjkl fdjsqklfmdsjqfksdqlm +echo "teststeestes fdhsqjfkldhsqfjdsklfhdjfhdsqjkl fdjsqklfmdsjqfksdqlm" +echo "teststeestes fdsqfsdq" +echo "jfkldsfjdskljfdksl" +echo -e "jfkldsfjdskljfdksl" +echo -e "jfkldsfjdskl jfdksl" +echo -e "jfkldsfjdskl jfdksl" +echo -E "jfkldsfjdskl jfdksl" +echo -E "jfkldsfjdskl jfdksl" +cat 02_Aliases.paranoid 02_Aliases.prunelle 02_Aliases.zsh 02_Options.zsh +vim 02_Aliases.paranoid +vim 04_KeyBindings.zsh +vim 05_Functions.zsh +cat 03_Completion.zsh +cat .openwin-init +ln -s /filer1_vol5/dev_projets2/souche_linux_pl +mv souche_linux_pl SoucheLinuxPl +mv SoucheLinuxPl SoucheLinuxPL +cd doc +mkdir Doc_Hugues +la tools +la tmp +mkdir hugues +la ../guillaume +cp ../guillaume/soft_rg_v2/*.tar.bz2 . +cd dev/hugues +la /dev/pt12 +la /dev/pts/12 +finger -m aube +finger -m kochoedo +finger -m gagnaire +vim ~/.zshrc\ + +echo %n@%m:%\~\>\ +la ~gaudonvi/.zshrc +cp ~gaudonvi/.zshr~. +cp ~gaudonvi/.zshrc ~/. +vim ~/.zshrc +cd kernel +cat sagem.config > .config +make menuconfig +cat /proc/cpuinfo | grep process +make -j4 2>&1 > make.log &! +find ~/SoucheLinuxPL -name mips-linux-gcc +find ~/SoucheLinuxPL/. -name mips-linux-gcc +cat .login +more .login +cp .login .zlogin +zsh -l +rm -fr .zlogin +grep comp .zshrc +grep compctl .zshrc +grep load .zshrc +find ~/SoucheLinuxPL/. -name "mips-linux-*" +mv SoucheLinuxPL souche +autoconf +./sagem-mips-linux-config +df +df -h +screen +cd toolchain-linux-mips +cd - +grep -i prefix Makefile +grep -i prefix sagem.config +grep -i prefix .config +grep -i prefix Config.in +ls +cd SoucheLinuxPL +cd dev +la hugues +cd hugues +for i in *.tar.bz2 ; do tar xvjf $i ; done +screen +screen -r +screen -x +vim .zsh/02_Options.zsh +fc - lessclose.sh +fc ls +man fc +fc -P +fc -o +fc -p +for i in /filer1/dev_users/hiegel/.zsh/02_Options.zsh /filer1/dev_users/hiegel/.zsh/04_KeyBindings.zsh ; do source $i ; done +cat ~/.zsh/04_KeyBindings.zsh +test $TERM = "xterm" +ok +echo ok +cat > micro_inetd.h +cat micro_inetd.h +less ../busybox/shell/ash.c +la .. +cat ../telnet/telnets.c +../telnet/telnets.c +$NULLCMD ../telnet/telnets.c +< ../telnet/telnets.c +v ../telnet/telnets.c +vim ../telnet/telnets.c +vim ../telnet/telnets.h +cat ../telnet/telnets.h +man vim +setopt globsubst +cd $PWD +unsetopt globsubst +setopt pushdignoredups +cd -4 +setopt pushdtohome +unsetopt pushdtohome +setopt printexitvalue +true +false +cat fdqsjklm +setopt chaselinks +pushd +pushd +1 +cd -2 +cd souche/.. +cd souche/../souche_linux_pl +cd dev/hugues/current +unsetopt chaselinks +cd current +cd rg +vim micro_inetd.? +find ../.. +find ../.. -type f -name "*.c" +find ../.. -type f -name "*.c" -exec grep -l main +find ../.. -type f -name "*.c" -exec grep -l main '{}' ';' +find ../.. -type f -name "*.c" -exec grep -L main '{}' ';' +run-help find +find ../.. -type f -name "*.c" -exec grep -H main '{}' ';' +find ../.. holename "*/os/*" -type f -name "*.c" -exec grep -H "main(int" '{}' ';' +find ../.. ! -wholename "*/os/*" -type f -name "*.c" -exec grep -H "main(int" '{}' ';' +cd rg/pkg/micro_inetd main +cd rg/pkg/micro_inetd +cd rg/pkg/micro_inetd" " +cd rg/pkg/micro_inetd " " +cd rg/pkg/micro_inetd "" +cd_back current +cd_back hugues/current +powersave +tree -C /proc/bus/pci | less -R +cat /proc/bus/pci/00/00.0 +cat /proc/devices +cat /proc/dma +cat /proc/filesystems +cat /proc/self/cmdline +la /proc/self +cd rg/ +cd micro_inetd main +touch micro_inetd.c +editdiff --help +ping localhost +ping localhost:8023 +cd os/linux-2.6/usr +less gen_init_cpio.c +man less +cat > /dev/null +find . -name micro_inetd_module.o +cd build/pkg +cd micro_inetd +cat micro_inetd.d +file micro_inetd.d +file * +find . -name lbÃ_livebox.gif +ls -aU +ls -lst +ls -lt +ls -cl +ls -c +ls -l +ls -lacdtrux +ls -laCdtrux +ls -lacDtrux +ls -laC +ls -lam +ls -lac +ls -la -lc +l --full-time +l -c --full-time +echo $PATH|tr ':' ' ' +echo $PATH|tr ':' '\ +' +echo $PATH|tr ':' '\ +' | uniq +cat .distribution +echo $PATH | tr ':' '\ +' +echo $PATH | tr ':' '\ +' | uniq +echo $PATH | tr ':' '\ +' | sort +echo $PATH | tr ':' '\ +' | sort -u +echo $path +PATH+=:/test +zsh -ls +cd pkg/busybox +find ../.. ! -path "*/os/*" -type f -name "*.c" -exec grep -H "main(int" '{}' ';' +find ../.. -type f -name "*.c" -exec grep -H "main(int" '{}' ';' +find -type f -name "*.c" -exec grep -H "main(int" '{}' ';' +find -type f -name "*.c" -exec grep -H " main(int" '{}' ';' +find ../../build -name busybox\* +find ../../build -name busybox +find ../../build -name "*busybox*" +find ../../build.FAST3202 -name "*.o" +find ../../build/ -name busybox +la busybox +file micro_inetd/* +cd ../../build/pkg +chmod +x micro_inetd +chmod +x micro_inetd/micro_inetd +la micro_inetd +file micro_inetd/micro_inetd +file micro_inetd/micro_inetd busybox/busybox +rm -fr micro_inetd +cd rg/pkg rg/build/pkg +file micro_inetd +la ${PWD/rg/rg\/build} +make clean +la ../../build/pkg/micro_inetd +cd ../../ +la build/pkg/micro_inetd +less ../busybox/Makefile +cd ../busybox/ +less Makefile +find . -name busybox.links +vim +set\ readonly Makefile +find . -name sdpd +cd bluetooth +$PAGER Makefile +grep -r sdpd . +cd sdpd +cd ../ +cd ../micro_inetd +find build/ -name micro_inetd +run-help egrep +a hg +vim ~/.zsh/02_Aliases.zsh +run-help grep +grep compinit .zshrc +find ../../build -name "*.o" +fc -43 +cd ../../pkg/micro_inetd +fc -432 -5 +\: +run-help history +< $HISTFILE +cat -n < $HISTFILE +source ~/.zsh/02_Aliases.zsh +- ++ +fc 318 +hg test +cat _viminfo +rm _viminfo +cat /proc/net/tcp +cat /proc/net/netlink +cat /proc/net/netstat +netstat +cat /proc/net/udp +cat /proc/net/vlan/config +l /proc +ls /proc +ls /proc/net +mkdir hello_world +cp ../micro_inetd/Makefile . +touch hello_world.c +gcc hello_world.c -o hello_world +./hello_world +./hello_world fjdsklqf fjdsqk lfsqdj fklsdqm fjfsdqkl +./hello_world Test ceci est un +hg make config +hg testr +'hg 'make config" +hg "make config" +vim $ZDOTDIR/02_Aliases.zsh +source $ZDOTDIR/02_Aliases.zsh +hg config +vim hello_world.c +ln -s ~/souche/dev/hugues/current/rg/build/ +la build/openrg.img . +la build/openrg.img . | grep hiegel +la build/os/openrg.img . | grep hiegel +unset LD_LIBRARY_PATH +unset PKG_CONFIG_PATH +exports +hostname +cat /etc/hosts +ping compilsuse1 +ping compilsuse2 +ping compilsuse3 +cat +unsetopt longlistjobs +setopt longlistjobs +jobs +ln -fs ../souche/dev/hugues/current/rg/build +la build/os/openrg.img openrg.img +unsetopt braceexpand +setopt braceexpand +grep MICRO Makefile +cd hello_world +cat > ~/tftpd/LOAD +make distclean +echo fdsjkflds\ fds fqds +touch toto\ tata +rm toto\ tata +touch "$(cat LOAD )" +ps fax +ps fux +watch -n1 ps\ fux +watch -n1 ps\ fx +run-help watch +top +cat LOAD +\ + +lastlog +lastlog|sort +finger -m maia +cd utils +cd dev/hugues/current/rg +find . -name Makefile -exec grep -Hi "(micro_inetd|hello_world)" '{}' ';' +find . -name Makefile -exec egrep -Hi "(micro_inetd|hello_world)" '{}' ';' +vim pkg/Makefile +cp build/os/openrg.img ~/tftpd/ +make config DIST=FAST3202 LIC=../license/jpkg_fast3202.lic +make distclean && make config DIST=FAST3202 LIC=../license/jpkg_fast3202.lic && make && cp ~/tftpd/{build/os,}/openrg.img +watch -n1 "ps fax -W $COLS" +watch -n1 "ps faxW $COLS" +man ps +watch -n1 "ps fax --widtg $COLS" +watch -n1 "ps fax --width $COLS" +watch -n1 ps\ fax\ --width\ $COLUMNS +watch -n1 ps\ fux\ --width\ $COLUMNS +watch -n1 ps\ fx\ --width\ $COLUMNS +cd pkg +vim build/config_opt.c +grep -r { "CONFIG_RG_MICRO_INETD", NULL, OPT_NOSTRIP | OPT_HC }, +grep -r CONFIG_RG_MICRO_INETD . +vim build/feature_config.c +cp ~/tftpd/{build/os,}/openrg.img +cat ~/tftpd/LOAD +make config DIST=FAST3202 LIC=../license/jpkg_fast3202.lic && make && cp ~/tftpd/{build/os,}/openrg.img && cat ~/tftpd/LOAD +make distclean && make config DIST=FAST3202 LIC=../license/jpkg_fast3202.lic && make && cp ~/tftpd/{build/os,}/openrg.img && cat ~/tftpd/LOAD +echo $PS1 +echo -e $PS1 +echo -E $PS1 +echo -b $PS1 +echo -n $PS1 +bindkey|grep reh +cat /proc/cpuinfo +cat /proc/bus/pci +cat /proc/bus/pci/devices +bindkey|grep correct +run-help fdqs +fdqs jkfldqs fjdsq klfmfdsqfdsqhlhlhl\ +fdsqhfjkdslqfhdsjk +echo hello world;\ +echo essai ...\ +echo test; +less /tmp/zsh32564ec1 ;: 'ec' +less /tmp/zsh32564echo2 ;: 'echo' +less /tmp/zsh32564echo3 ;: 'echo' +less /tmp/zsh32564echo4 ;: 'echo' +less /tmp/zsh32564echo5 ;: 'echo ' +less /tmp/zsh32564echo6 ;: 'echo ' +less /tmp/zsh32564echo7 ;: 'echo ' +less /tmp/zsh32564echo8 ;: 'echo' +less /tmp/zsh325649 ;: '' +less /tmp/zsh3256410 ;: '' +less /tmp/zsh3256411 ;: '' +less /tmp/zsh32564echo12 ;: 'echo' +less /tmp/zsh32564ech13 ;: 'ech' +less /tmp/zsh32564echo14 ;: 'echo' +cat /tmp/zsh32564echo14 +rm /tmp/zsh32564ec1 /tmp/zsh32564ech13 /tmp/zsh32564echo2 /tmp/zsh32564echo3 /tmp/zsh32564echo4 /tmp/zsh32564echo5 /tmp/zsh32564echo6 /tmp/zsh32564echo7 /tmp/zsh32564echo8 /tmp/zsh32564echo12 /tmp/zsh32564echo14 /tmp/zsh325649 /tmp/zsh3256410 /tmp/zsh3256411 +bindkey|less +cd pkg/hello_world +file hello_world +rm hello_world +file hello_world.c +echo {toto,tata,tutu} +echo ~/tftpd/{build/os,}/openrg.img .zsh/ +cd kochoedo +setopt cdablevars +vim ~/.zsh/02_Options.zsh +touch test +rm test +echo toto tata tutu +touch tata toto tutu +rm tutu +rm tata +'echo' tests'\''' +echo ''\''tests'\''' +echo toto +echo "------------------------------------------" +which-command echo +echo +echo test +run-help echo +echo tes +bindkey "u" +bindkey "" +bindkey "^_" +watch -n1 ps\ fx\ --cols $COLUMNS +cd gagnaire +cd hiegel +echo essai +telnet localhost 8024 +cd tftpd +cp {build/os/,}openrg.img +emacs +gvim +echo $DISPLAY +exit +cat .zshrc +du -h * +du -hS * +du -hs * +du -hsc * +du -sc * +du -c * +vim 03_Completion.zsh +grep completion ~gaudonvi/.zshrc +grep completion ../HappyConf/ZshRC_Gagnaire +vim 03_Completion.zsh +wv +vim 03_Completion.zsh +splitv +vim 03_Completion.zsh +vsplit +vim 03_Completion.zsh +vsplit ../HappyConf/ZshRC_Gagnaire +vim 03_Completion.zsh +vsplit ../HappyConf/ZshRC_Gagnaire +bnext +bindkey -s "" "rehash\n" +bindkey "" +bindkey " " +bindkey "r" +bindkey "R" +bindkey "R" -s "rehash\n" +bindkey "R" "rehash\n" +bindkey -s "R" "rehash\n" +cp .zshrc _zshrc +mv .zshrc _zshrc_sources +source _zshrc_sources +source _zshrc_sources > .zshrc +vim .zshrc +vim .zshrc +vsplit ../HappyConf/ZshRC_Gagnaire +bnext +vim .zshrc +vsplit HappyConf/ZshRC_Gagnaire +bnext +mv .zshrc Ã_zshrc_allinone +cp _zshrc .zshrc +vim * +vsplit ../HappyConf/ZshRC_Gagnaire +bnext +vim * +vsplit ../HappyConf/ZshRC_Gagnaire +bp +typeset +typeset PATH +typeset -g +typeset -gU +man typeset +less /tmp/zsh10189typeset1 ;: 'typeset' +which-command typeset +run-help typeset +watch +ls . +sleep 2 ; ls . +ls -r / +ls -r /* +cat > /tmp/test +rm /tmp/test +time echo poeut +unset REPORTTIME +time echo pouet +REPORTTIME=1 +time ls +export PATH +echo $REPORTTIME +cat /etc/passwd +less micro_inetd.c +man execv +telnet localhost 8022 +cat micro_inetd.c +vim +readonly micro_inetd.c +vim +set\ readonly micro_inetd.c +run-help less +less /tmp/zsh10189apt-get2 ;: 'apt-get ' +which-command sudo +less /tmp/zsh10189apt-get3 ;: 'apt-get ' +cat /tmp/zsh10189apt-get3 +bindkey -e +bindkey -v +mmv *Exports* *Environment* +mmv *Environment* +mmv *Environment* *Environement* +ln -fs 01_Environement.Vélizy 01_Environement.VZY08001 +rm 01_Environment.VZY08001 +chmod -x * +dircolors +cat 01_Environement.zsh +cat 01_Environement.prunelle +mmv 05* 50* +mmv 04* 40* +mmv 03* 30* +mmv 02* 20* +mmv 02* 10* +mmv 01* 10* +ln -fs 10_Environement.Vélizy 10_Environement.VZY08001 +mmv 20_Aliases* 70ÃÃ_Aliases* +mmv 70ÃÃ_Aliases.* 70_Aliases* +mmv 70_Aliases* 70_Aliases.* +cat 10_Environement.zsh > 11_Prompts.zsh +vim 11_Prompts.zsh +vim ../.zshrc +cat 30_Completion.zsh +cat 00_Preambule.zsh +ulimit +ulimit -c +ulimit -l +ulimit -a +chmod +x * +./00_Preambule.zsh +la .zshrc +chmod +x .zshrc +./.zshrc +cat _zshrc +cat _zshrc_sources +rm _zshrc _zshrc_sources +rm Ã_zshrc_allinone +chmod a-x * +chmod a-x ../.zshrc +man echo +sl +_grep +vim * +-t +[[ -t ]] +[[ -t 1 ]] +man [ +man test +vim 50_Functions.zsh +grep PATH * +cat 10_Environement.* +cat 10_Environement.zsh +cat 70_Aliases.zsh +alias=unalias +a alias=unalias +alias +\alias +alias ls +\unalias +vim 10_Environement.Vélizy +vim 10_Environement.zsh +cat 11_Prompts.zsh +mmv 10_Environement.* 10_Variables.* +ln -fs 10_Variables.Vélizy 10_Variables.VZY08001 +la +cat 20_Options.zsh +man zshoptions +unsetopt aliases +setopt aliases +export +echo $SHLVL +unsetopt alwayslastprompt +unsetopt alwaystoend +setopt noalwaystoend +setopt +unsetopt completealiases +setopt nocompletealiases +setopt completealiases +less /tmp/zsh17546set1 ;: 'set' +bindkey " " +bindkey "?" +bindkey "?" +bindkey "s" +bindkey "s" +which-command get +less /tmp/zsh17546get2 ;: 'get' +bindkey " " expand-or-complete-prefix +cd .ssh +vim ~/.zsh/*Opt* +la tftpd +cd os +less /tmp/zsh23379l1 ;: 'l' +cat \?bldorg\?rg_version.txt +less /tmp/zsh23379l2 ;: 'l' +which-command ls +less /tmp/zsh23379l3 ;: 'l' +less /tmp/zsh23379l4 ;: 'l' +run-help ls +less /tmp/zsh23379l5 ;: 'l' +less /tmp/zsh23379l6 ;: 'l' +less /tmp/zsh23379l7 ;: 'l' +man bindkey +run-help bindkey +man zshzle +bindkey -s "r" "rehash" +bindkey -s "r" "rehash\n" +echo rehash +l: +bindkey -s "r" " rehash\n" +ls -Ãla +lm +lc +man ls +vim pkg/main/run_ext_proc.c +cp ~/tftpd/{build/os,}/openrg.img && cat ~/tftpd/LOAD +telnet localhost 8023 +emacs& +info makefile +info Makefile +cat .zsh_history +rm .zsh_history +mv zshpower.tbz2 HappyConf +la HappyConf +umask +tree -C | less -R +tree -C | cut -c-$COLUMNS | less -R +tftpd/ +... +a +una .. +cat ~vitoux/toto.txt +cd souche/dev/hugues/current/rg +cd pkg/micro_inetd +vim micro_inetd.c +cd / +vim tmp/Sagem3202_ft1.Rax27374 +vim tmp/ccqVEgN1.s +la opt +la /tmp/ccRMb1GC.s +la /tmp/Sagem3202_ft1.Rax27374 +finger -m hiegel +finger -m gaudonvi +la vimfiles +tree vimfiles +cat vimfiles/colors +rmdir vimfiles/* vimfiles +la sbin +cat sbin/rip-3-passes.sh +emacs Makefile& +la ../patches +echo $CDPATH +CDPATH=.:~:.. +CDPATH=.:~:..:/ +cd tmp +pwd +cd +7 +CDPATH=. +cd souche +CDPATH=.. +CDPATH=~ +cd +6 +VISUAL=$EDITOR +quilt new +quilt new Make_builds_only_Ãnecessary.patch +quilt pop +quilt new Make_builds_only_necessary.patch +quilt appliedd +quilt applied +QUILT_EDITOR=emacs +find ~/souche/tools -name quilt +export MANPATH=$MANPATH:~/souche/tools/share/man +echo $MANPATH +vim ~/.zsh/10_Variables.Vélizy +vim ~/.zsh/40_KeyBindings.zsh +export EDITOR +unset EDITOR VISUAL FCEDIT +EDITOR=emacs +cat ~/.quiltrc +vim ~/.quiltrc +EDITOR=emacs quilt edit Makefile +cat path_up_recursive.mak +cat \#Makefile\# +echo "\vtoto" +echo "test\vtoto" +echo "test\vtoto" +echo "test\vtoto" +echo "test\v\_ toto" +echo "test\v\_ toto\v\_ tata" +echo "test\r\v \_ toto\v\_ tata" +echo "test\r\v \_ toto\r\v \_ tata" +echo %\{\[%\(\!.31.33\)m%\}%n%\{\[1\;%\(\!.31.33\)m%\}@%\{\[0\;%\(\!.31.33\)m%\}%m%\{\[0m%\}\ \(%\{\[36m%\}%y%\{\[0m%\}\)\ \[%\(\!.%\{\[31m%\}%d%\{\[0m%\}.%\{\[33m%\}%\(5~:...\v/:\)%4~%\{\[0m%\}\)\]\ %h%\{\[%\(\!.31\;1.33\)m%\}\#%\{\[0m%\}\ +export EDITOR=emacs +tar cvjf zshpower.tbz2 .zsh* +cd + +cd +0 +wc -l .zshrc .zsh/*.???* +wc -l .zshrc .zsh/??_*.???* +wc -l .zshrc .zsh/??_*.??? +wc -l .zshrc .zsh/??_*.* +du -sch .zshrc .zsh/??_*.* +du -c .zshrc .zsh/??_*.* +du -s .zshrc .zsh/??_*.* +du -ck .zshrc .zsh/??_*.* +du -cks .zshrc .zsh/??_*.* +du -sckh .zshrc .zsh/??_*.* +l ~gaudonvi/.zshrc +la .zsh +fg +man quilt +echo $LOGCHECK +screen -DDRx +screen -DDR +exec screen -DDR +tftpd +souche +cd tools +LC_ALL=fr_FR vim 10_Variables.zsh +WORDCHARS='*?-._~&;!#$%^<>' +vim 10_Variables.zsh +vim 10_Variables.paranoid +LC_ALL=fr_FR.utf8 vim 10_Variables.zsh +mmv 20* 10* +mmv 10_Variables.* 20_Variables.* +ln -fs 20_Variables.Vélizy 20_Variables.VZY08001 +echo $LC_ALL +export LC_MESSAGES +export LC_ALL +vim 10_Options.zsh +rehash +vim 20_Variables.Vélizy +cat 20_Variables.VZY08001 +echo $PATH +vim 20_Variables.VZY08001 +mv 11_* 21_* +mmv 11_* 21_* +mmv 21_* 25_* +ll .zsh +.zsh +mmv 0Ã_Ã* +mmv 50* 80* +mv 80_Debug.zsh 85_Debug.zsh +cat 99_Start.zsh +vim 99_Start.zsh +cat 85_Debug.zsh +cat 80_Functions.zsh +emacs * +bg +disown +souche/dev/hugues/current/rg +dc +vd +quilt edit Makefile +vim Makefile +sed +sed "1$p;h" +sed '1!G;$p;h' +ed +cd /tmp +touch tmp.hiegel +cat > tmp.hiegel +< tmp.hiegel sed '2G' +< tmp.hiegel sed '0!G' +< tmp.hiegel sed 'g' +< tmp.hiegel sed '$' +< tmp.hiegel sed '$p' +< tmp.hiegel sed '1!G;h' +< tmp.hiegel sed '1! ' +< tmp.hiegel sed '1! h' +< tmp.hiegel sed '1! p' +< tmp.hiegel sed '1! $' +< tmp.hiegel sed "1 +< tmp.hiegel sed '3!G' +< tmp.hiegel sed '=' +< tmp.hiegel sed '=;1!G' +< tmp.hiegel sed '=;1!G;:test;' +< tmp.hiegel sed '=;:test;1!G;b test' +< tmp.hiegel sed '=;:test;1!G;q' +< tmp.hiegel sed '=;:test;1!G;a TEST' +< tmp.hiegel sed '1!G;a TEST' +< tmp.hiegel sed 'G;a TEST' +< tmp.hiegel sed '1!a TEST' +< tmp.hiegel sed '1!a ' +< tmp.hiegel sed '1!a " "' +< tmp.hiegel sed '1!a\ ' +< tmp.hiegel sed '1!a _____' +< tmp.hiegel sed '1!i _____' +< tmp.hiegel sed '1!a <<<' +< tmp.hiegel sed '1!a +++' +less /tmp/zsh20109sed1 ;: 'sed ''1!a ''' +< tmp.hiegel sed '1!a <<<<<<<<<<<<<<<<<<<<<<<<<<<' +< tmp.hiegel sed '1!a <<<<<<<<<<<<<<<<<<<<<<<<<<<;$p' +< tmp.hiegel sed '1!a <<<<<<<<<<<<<<<<<<<<<<<<<<<\;$p' +< tmp.hiegel sed '1!a <<<<<<<<<<<<<<<<<<<<<<<<<<<\\ +;$p' +< tmp.hiegel sed '1!a <<<<<<<<<<<<<<<<<<<<<<<<<<<\ +;$p' +< tmp.hiegel sed '1!a <<<<<<<<<<<<<<<<<<<<<<<<<<<\n' +< tmp.hiegel sed '1!a <<<<<<<<<<<<<<<<<<<<<<<<<<<\ +' +< tmp.hiegel sed '1!a <<<<<<<<<<<<<<<<<<<<<<<<<<<\ +test' +< tmp.hiegel sed '1!a <<<<<<<<<<<<<<<<<<<<<<<<<<<\ +$ <<<<<<<<<<<<<<<<<<<<<<<<<<toto +rm toto +sed '1!G;$p;h'>toto +sed '1!G;$p;h;G'>toto +cat toto +sed '1!G;$p;h;G' +sed '1!G;$p;h;g' +sed -nf '1!G;$p;h;g' +sed -n '1!G;$p;h;g' +tmp +/tmp +< tmp.hiegel sed 'y/t_/ :/' +cd -1 +la livraison_sagem/2006-06-12_input-plateau +cdpath=.. +cd guillaume hugues +cd hugues guillaume +cp ../guillaume/livraison_sagem/2006-06-12_input-plateau.tar . +cp -a ../guillaume/livraison_sagem/2006-06-12_input-plateau.tar . +cd souc +cd souche/dev/hugues +file 2006-06-12_input-plateau.tar +tar xv 2006-06-12_input-plateau.tar +tar xf 2006-06-12_input-plateau.tar +mmv *.tgz * +find . -iname cmvs.txt +find . -iname cmv +find . -iname cmv\* +find * -iname cmv\* +tree +ToOTO=test +echo $ToOTO +unset ToOTO +unzip LBV2_Milestone3.3_CodeDrop_March17_2006.zip +tar xvjf milestone3.3.tar.bz2 +rm LBV2_Milestone3.3_CodeDrop_March17_2006.zip +cd 20060403_release_sdk3.3 +for i in *tar.bz2 ; do tar xjf $i ; done +rm *.tar.bz2 +20060518_sdk_cd_dir.4.0.21.3.3.1.23 +tar xzf sdk_cd_dir.4.0.21.3.3.1.23.tgz +rm sdk_cd_dir.4.0.21.3.3.1.23.tgz +cd ./20060317_milestone3.3/LBV2_Milestone3.3_CodeDrop_March17_2006/milestone3.3/fusiv_src/user/sysutil/ +cd ~ +mkdir tests +cd tests +unset preexec +unset precmd +touch continue.c +killall continue +gcc -o continue continue.c +vim continue.c +./continue +cat continue +strip continue +nm continue +objdump continue +objdump -s continue +objdump -d continue +bindkey -s "l" "l\n" +bindkey -s "l" "" +bindkey -s "l" "l" +bindkey +bindkey "l" "l" +bindkey "l" "" +bindkey "l" " " +bindkey "l" "undefined" +bindkey "l" +bindkey o +bindkey "l" "self-insert" +bindkey -s "l" "ls\n" +bindkey -s "l" "l\n" +bindkey -s "l" " l\n" +bindkey -s "l" " l\n" +bindkey -s "l" " ls -lh\n" +cat continue.c +uptime +uname -a +LC_ALL=C uptime +echo $TIMEFMT +echo $TIME_STYLE +time test +time true +time false +time sleep 0,1 ; cat ; true +unset TIMEFMT +time (sleep 0,1 ; cat ; true) +vim ~/.zsh/20_Variables.zsh +~/.zsh +rt +vim 00_Preambule.zsh +cat pouet +time cat +time (ls ÃÃ-ls | sed 'y/ /:_/' ) +time (ls -ls | sed 'y/ /:_/' ) +time (ls -ls | tr -s ' ' | sed 'y/ /:_/' ) +ls +vim 20_Variables.zsh +REPORTTIME=0 +ls -la +souche/dev/hugues +cd 2006-06-12_input-plateau +cd 20060518_sdk_cd_dir.4.0.21.3.3.1.23 +s +find . -name cmvs.txt +cscope +make sysutils +automake +cd ../../../.. +cd /filer1/dev_users/hiegel/souche/dev/hugues/2006-06-12_input-plateau/20060317_milestone3.3/LBV2_Milestone3.3_CodeDrop_March17_2006/milestone3.3/fusiv_src/user/sysutil/../../../../../../../ +cd /filer1/dev_users/hiegel/souche/dev/hugues/2006-06-12_input-plateau/20060317_milestone3.3/ +find . -name "atm.h" +cd +2 +./configure $OLDPWD/./20060317_milestone3.3/LBV2_Milestone3.3_CodeDrop_March17_2006/milestone3.3/linux-mips-2.6.12/include/linux/atm.h +./configure $OLDPWD/./20060317_milestone3.3/LBV2_Milestone3.3_CodeDrop_March17_2006/milestone3.3/linux-mips-2.6.12/include/linux/atm.h test +cat Makefile +./configure $OLDPWD/./20060317_milestone3.3/LBV2_Milestone3.3_CodeDrop_March17_2006/milestone3.3/linux-mips-2.6.12/include/linux/atm.h gcc +./configure -I$OLDPWD/./20060317_milestone3.3/LBV2_Milestone3.3_CodeDrop_March17_2006/milestone3.3/linux-mips-2.6.12/include/linux/atm.h gcc +./configure -i$OLDPWD/./20060317_milestone3.3/LBV2_Milestone3.3_CodeDrop_March17_2006/milestone3.3/linux-mips-2.6.12/include/linux/atm.h gcc +cd souche/dev/hugues/2006-06-12_input-plateau/ +man gcc +./configure -include\ $OLDPWD/./20060317_milestone3.3/LBV2_Milestone3.3_CodeDrop_March17_2006/milestone3.3/linux-mips-2.6.12/include/linux/atm.h gcc +./configure -include\ /filer1/dev_users/hiegel/souche/dev/hugues/2006-06-12_input-plateau/20060317_milestone3.3/LBV2_Milestone3.3_CodeDrop_March17_2006/milestone3.3/linux-mips-2.6.12/include/linux/atm.h gcc +setopt GLoBDoTs +cat Milestone3_3ReleaseNote.txt +cd LBV2_Milestone3.3_CodeDrop_March17_2006 +cat pppox_patch.txt +cd milestone3.3 +unset CDPATH +./mkbootimg +cd buildroot +./buildroot_sampcfg +make +cd ../.. +tar xvf 2006-06-12_input-plateau.tar +cd 2006-06-12_input-plateau/. +k +cd 20060403_release_sdk3.3/ +cd binaries/ +cd ../.; +.. +fc +which-command cd +less /tmp/zsh67721 ;: '' +less /tmp/zsh6772cd2 ;: 'cd ' +\: 'test cat ' +rm -fr 20060518_sdk_cd_dir.4.0.21.3.3.1.23 +LL +cd 20060317_milestone3.3 +cd LBV2_Milestone3.3_CodeDrop_March17_2006/milestone3.3 +so +cd ... +cd .. +find -name sysutils -type d +find -name sysutils +find -name sysutil +cd ./20060317_milestone3.3/LBV2_Milestone3.3_CodeDrop_March17_2006/milestone3.3/fusiv_src/user/sysutil +cat ./1 +rm ./1 +l +cat cmvs.h +hexdump -C CMV +cat cmvs.txt +./configure +vim configure +vim Makefile.in +cat configure +cat Makefile.in +cd +tar cvjf HappyConf/zshpower.tbz2 .zsh* +tar xvjf zshpower.tbz +cd .zsh +zsh +cat 40_KeyBindings.zsh +bindkey >> 40_KeyBindings.zsh +ll +exec zsh +ll +cd .. +mv _zsh/.svn .zsh +cd .zsh +svn staus +svn status +for i in $( svn status | grep '^!' | cut -c2- ) ; do echo svn delete $i ; done +for i in $( svn status | grep '^!' | cut -c2- ) ; do svn delete $i ; done +for i in $( svn status | grep '^?' | cut -c2- ) ; do svn add $i ; done +ll +svn status +cd .. +svn status .zshrc +svn diff .zshrc +svn commit .zsh .zshrc diff --git a/.zcompdump b/.zcompdump new file mode 100644 index 0000000..46b2e02 --- /dev/null +++ b/.zcompdump @@ -0,0 +1,1167 @@ +#files: 491 version: 4.3.2 + +_comps=( +- _precommand +. _source +a2ps _a2ps +aaaa _hosts +aap _aap +acpi _acpi +acroread _acroread +admin _sccs +ali _mh +alias _alias +amaya _webbrowser +analyseplugin _analyseplugin +animate _imagemagick +anno _mh +ant _ant +antiword _antiword +apache2ctl _apachectl +apachectl _apachectl +apm _apm +appletviewer _java +apropos _man +apt-cache _apt +apt-cdrom _apt +apt-config _apt +apt-get _apt +aptitude _aptitude +apt-move _apt-move +apt-show-versions _apt-show-versions +arena _webbrowser +arp _arp +arping _arping +-array-value- _value +-assign-parameter- _assign +attr _attr +auto-apt _auto-apt +autoload _typeset +bash _sh +baz _baz +bg _jobs_bg +bindkey _bindkey +bison _bison +bogofilter _bogofilter +bogotune _bogofilter +bogoutil _bogofilter +-brace-parameter- _brace_parameter +brctl _brctl +btdownloadcurses _bittorrent +btdownloadgui _bittorrent +btdownloadheadless _bittorrent +btlaunchmany _bittorrent +btlaunchmanycurses _bittorrent +btmakemetafile _bittorrent +btreannounce _bittorrent +btrename _bittorrent +bts _bts +btshowmetainfo _bittorrent +bttrack _bittorrent +bug _bug +buildhash _ispell +builtin _builtin +bunzip2 _bzip2 +burst _mh +bzcat _bzip2 +bzip2 _bzip2 +bzip2recover _bzip2 +bzr _bzr +cal _cal +catchsegv _precommand +ccal _ccal +cd _cd +cdc _sccs +cdcd _cdcd +cdrecord _cdrecord +certtool _gnutls +cftp _twisted +chage _users +chdir _cd +chflags _chflags +chfn _users +chgrp _chown +chimera _webbrowser +chkconfig _chkconfig +chmod _chmod +chown _chown +chsh _users +ci _rcs +ckeygen _twisted +clear _nothing +co _rcs +comb _sccs +combine _imagemagick +command _command +-command- _autocd +-command-line- _normal +comp _mh +compdef _compdef +composite _imagemagick +compress _compress +conch _twisted +-condition- _condition +configure _configure +convert _imagemagick +cp _cp +cpio _cpio +cplay _cplay +csh _sh +curl _urls +cvs _cvs +cvsup _cvsup +cygcheck _cygcheck +cygcheck.exe _cygcheck +cygpath _cygpath +cygpath.exe _cygpath +cygrunsrv _cygrunsrv +cygrunsrv.exe _cygrunsrv +cygserver _cygserver +cygserver.exe _cygserver +cygstart _cygstart +cygstart.exe _cygstart +darcs _darcs +date _date +dch _debchange +dchroot _dchroot +dcop _dcop +dcopclient _dcop +dcopfind _dcop +dcopobject _dcop +dcopref _dcop +dcopstart _dcop +dd _dd +debchange _debchange +debdiff _debdiff +debfoster _debfoster +debsign _debsign +declare _typeset +-default- _default +defaults _defaults +delta _sccs +df _directories +dhclient _dhclient +dhclient3 _dhclient +dict _dict +diff _diff +diffstat _diffstat +dillo _webbrowser +dircmp _directories +dirs _dirs +disable _disable +disown _jobs_fg +display _imagemagick +dist _mh +dlocate _dlocate +dmake _make +domainname _yp +dosdel _floppy +dosread _floppy +dpkg _dpkg +dpkg-cross _dpkg-cross +dpkg-deb _dpkg +dpkg-query _dpkg +dpkg-reconfigure _dpkg +dpkg-source _dpkg_source +dput _dput +du _du +dumper _dumper +dumper.exe _dumper +dupload _dupload +dvibook _dvi +dviconcat _dvi +dvicopy _dvi +dvidvi _dvi +dvips _dvi +dviselect _dvi +dvitodvi _dvi +dvitype _dvi +ecasound _ecasound +echotc _echotc +echoti _echoti +egrep _grep +elinks _elinks +elm _elm +emulate _emulate +enable _enable +enscript _enscript +env _precommand +epsffit _psutils +-equal- _equal +eval _precommand +eview _vim +evim _vim +exec _precommand +exim _vim +explodepkg _pkgtool +export _typeset +express _webbrowser +extcheck _java +extractres _psutils +fakeroot _fakeroot +false _nothing +fc _fc +fetchmail _fetchmail +fg _jobs_fg +fgrep _grep +figlet _figlet +find _find +findaffix _ispell +finger _finger +fink _fink +firefox _webbrowser +-first- _first +fixdlsrps _psutils +fixfmps _psutils +fixmacps _psutils +fixpsditps _psutils +fixpspps _psutils +fixscribeps _psutils +fixtpps _psutils +fixwfwps _psutils +fixwpps _psutils +fixwwps _psutils +flasher _flasher +flex _flex +flist _mh +flists _mh +float _typeset +fned _zed +folder _mh +folders _mh +fortune _fortune +forw _mh +fsh _fsh +ftp _hosts +functions _typeset +fuser _fuser +fusermount _fusermount +fwhois _whois +g++ _gcc +galeon _webbrowser +gcc _gcc +gdb _gdb +gdiff _diff +get _sccs +getafm _psutils +getclip _getclip +getclip.exe _getclip +getconf _getconf +getent _getent +getfacl _getfacl +getfacl.exe _getfacl +getfattr _attr +getopts _vars +gex _vim +ggv _gnome-gv +ghostscript _gs +ghostview _pspdf +git _git +git-add _git +git-am _git +git-apply _git +git-applymbox _git +git-applypatch _git +git-archimport _git +git-bisect _git +git-branch _git +git-cat-file _git +git-checkout _git +git-checkout-index _git +git-check-ref-format _git +git-cherry _git +git-cherry-pick _git +git-clone _git +git-clone-pack _git +git-commit _git +git-commit-tree _git +git-convert-objects _git +git-count-objects _git +git-cvsimport _git +git-daemon _git +git-diff _git +git-diff-files _git +git-diff-index _git +git-diff-stages _git +git-diff-tree _git +git-fetch _git +git-fetch-pack _git +git-format-patch _git +git-fsck-objects _git +git-get-tar-commit-id _git +git-grep _git +git-hash-object _git +git-http-fetch _git +git-index-pack _git +git-init-db _git +git-local-fetch _git +git-log _git +git-lost-found _git +git-ls-files _git +git-ls-remote _git +git-ls-tree _git +git-mailinfo _git +git-mailsplit _git +git-merge _git +git-merge-base _git +git-merge-index _git +git-merge-one-file _git +git-mktag _git +git-mv _git +git-name-rev _git +git-octopus _git +git-pack-objects _git +git-patch-id _git +git-peek-remote _git +git-prune _git +git-prune-packed _git +git-pull _git +git-push _git +git-read-tree _git +git-rebase _git +git-receive-pack _git +git-relink _git +git-repack _git +git-request-pull _git +git-reset _git +git-resolve _git +git-revert _git +git-rev-list _git +git-send-email _git +git-send-pack _git +git-shortlog _git +git-show-branch _git +git-show-index _git +git-ssh-fetch _git +git-ssh-upload _git +git-status _git +git-stripspace _git +git-svnimport _git +git-symbolic-ref _git +git-tag _git +git-tar-tree _git +git-unpack-file _git +git-unpack-objects _git +git-update-index _git +git-update-ref _git +git-update-server-info _git +git-upload-pack _git +git-var _git +git-verify-pack _git +git-verify-tag _git +git-whatchanged _git +git-write-tree _git +global _global +gls _ls +gmake _make +gmplayer _mplayer +gnome-gv _gnome-gv +gnutls-cli _gnutls +gnutls-cli-debug _gnutls +gpg _gpg +gpgv _gpg +gphoto2 _gphoto2 +gprof _gprof +gqview _gqview +grail _webbrowser +grep _grep +groff _groff +groupadd _user_admin +groupdel _groups +groupmod _user_admin +groups _users +gs _gs +gsbj _pspdf +gsdj _pspdf +gsdj500 _pspdf +gslj _pspdf +gslp _pspdf +gsnd _pspdf +gtar _tar +gunzip _gzip +gv _gv +gview _vim +gvim _vim +gvimdiff _vim +gzcat _gzip +gzilla _webbrowser +gzip _gzip +hash _hash +hdiutil _hdiutil +help _sccs +history _fc +host _hosts +hotjava _webbrowser +icombine _ispell +iconv _iconv +identify _imagemagick +ifconfig _ifconfig +ifdown _net_interfaces +ifup _net_interfaces +ijoin _ispell +import _imagemagick +inc _mh +includeres _psutils +info _texinfo +infocmp _terminals +insmod _modutils +install-info _texinfo +installpkg _pkgtool +integer _typeset +iptables _iptables +iptables-restore _iptables +iptables-save _iptables +irssi _irssi +ispell _ispell +iwconfig _iwconfig +jadetex _tex +jar _java +jarsigner _java +java _java +javac _java +javadoc _java +javah _java +javap _java +jdb _java +jobs _jobs_builtin +joe _joe +keytool _java +kfmclient _kfmclient +kill _kill +killall _killall +killall5 _killall +kldload _kld +kldunload _kld +knock _knock +konqueror _webbrowser +kpdf _pdf +ksh _sh +kvno _kvno +last _last +lastb _last +latex _tex +less _less +let _math +lftp _ncftp +light _webbrowser +limit _limit +linda _linda +links _links +lintian _lintian +linux _uml +loadkeys _loadkeys +local _typeset +log _nothing +logname _nothing +look _look +lore _twisted +losetup _losetup +lp _lp +lpq _lp +lpr _lp +lprm _lp +ls _ls +lscfg _lscfg +lsdev _lsdev +lslv _lslv +lsmod _modutils +lsof _lsof +lspv _lspv +lsvg _lsvg +lynx _lynx +lzop _lzop +m-a _module-assistant +madison _madison +mail _mail +Mail _mail +mailx _mail +make _make +makeinfo _texinfo +make-kpkg _make-kpkg +makepkg _pkgtool +man _man +manhole _twisted +mark _mh +-math- _math +mattrib _mtools +mcd _mtools +mcopy _mtools +mdel _mtools +mdeltree _mtools +mdir _mtools +mdu _mtools +mencal _mencal +mere _mere +merge _rcs +mergechanges _mergechanges +mformat _mtools +mgv _pspdf +mhlist _mh +mhmail _mh +mhn _mh +mhparam _mh +mhpath _mh +mhshow _mh +mhstore _mh +mii-tool _mii-tool +mkshortcut _mkshortcut +mkshortcut.exe _mkshortcut +mktap _twisted +mkzsh _mkzsh +mkzsh.exe _mkzsh +mlabel _mtools +mmd _mtools +mmm _webbrowser +mmount _mtools +mmove _mtools +modinfo _modutils +modprobe _modutils +module-assistant _module-assistant +mogrify _imagemagick +mondoarchive _mondo +montage _imagemagick +Mosaic _webbrowser +mount _mount +mozilla _mozilla +mozilla-firefox _mozilla +mozilla-xremote-client _mozilla +mpc _mpc +mplayer _mplayer +mrd _mtools +mread _mtools +mren _mtools +msgchk _mh +mt _mt +mtoolstest _mtools +mtr _mtr +mtype _mtools +munchlist _ispell +mush _mail +mutt _mutt +mx _hosts +mysql _mysql_utils +mysqladmin _mysql_utils +mysqldiff _mysqldiff +mysqldump _mysql_utils +mysqlimport _mysql_utils +mysqlshow _mysql_utils +nail _mail +native2ascii _java +nautilus _nautilus +nc _netcat +ncal _cal +ncftp _ncftp +ncl _nedit +nedit _nedit +nedit-nc _nedit +netcat _netcat +netrik _webbrowser +netscape _netscape +newgrp _groups +next _mh +nice _nice +nmap _nmap +nmblookup _samba +nocorrect _precommand +noglob _precommand +nohup _precommand +ns _hosts +nslookup _nslookup +ntalk _other_accounts +odme _object_classes +odmget _object_classes +odmshow _object_classes +ogg123 _vorbis +oggdec _vorbis +oggenc _vorbis +ogginfo _vorbis +open _open +opera _webbrowser +p4 _perforce +pack _pack +packf _mh +-parameter- _parameter +parsehdlist _urpmi +passwd _users +patch _patch +pcat _pack +pcred _pids +pdf2dsc _pdf +pdf2ps _pdf +pdffonts _pdf +pdfimages _pdf +pdfinfo _pdf +pdfjadetex _tex +pdflatex _tex +pdfopt _pdf +pdftopbm _pdf +pdftops _pdf +pdftotext _pdf +perl _perl +perldoc _perldoc +pfiles _pids +pflags _pids +phoenix _webbrowser +php _php +pick _mh +pine _pine +pinef _pine +ping _ping +piuparts _piuparts +pkg_add _bsd_pkg +pkg-config _pkg-config +pkg_create _bsd_pkg +pkg_delete _bsd_pkg +pkg_info _bsd_pkg +pkgtool _pkgtool +pldd _pids +pmake _make +pman _perl_modules +pmap _pids +pmcat _perl_modules +pmdesc _perl_modules +pmeth _perl_modules +pmexp _perl_modules +pmfunc _perl_modules +pmload _perl_modules +pmls _perl_modules +pmpath _perl_modules +pmvers _perl_modules +podgrep _perl_modules +podpath _perl_modules +podtoc _perl_modules +policytool _java +popd _directory_stack +postsuper _postfix +prcs _prcs +prev _mh +print _print +printenv _printenv +prompt _prompt +prs _sccs +prt _sccs +prun _pids +ps2ascii _pspdf +ps2epsi _ps +ps2pdf _ps +ps2pdf12 _ps +ps2pdf13 _ps +ps2pdf14 _ps +ps2pdfwr _ps +ps2ps _ps +psbook _psutils +pscp _pscp +pscp.exe _pscp +psig _pids +psmerge _psutils +psmulti _ps +psnup _psutils +psresize _psutils +psselect _psutils +pstack _pids +pstoedit _pspdf +pstop _pids +pstops _psutils +pstotgif _pspdf +pswrap _ps +ptree _pids +pump _pump +pushd _cd +putclip _putclip +putclip.exe _putclip +pwait _pids +pwdx _pids +pyhtmlizer _twisted +python _python +qiv _qiv +qtplay _qtplay +querybts _bug +quilt _quilt +r _fc +raggle _raggle +rake _rake +rar _rar +rc _sh +rcp _rlogin +rcs _rcs +rcsdiff _rcs +read _read +readonly _typeset +-redirect- _redirect +-redirect-,\<,bunzip2 _bzip2 +-redirect-,\<,bzip2 _bzip2 +-redirect-,\>,bzip2 _bzip2 +-redirect-,\<,compress _compress +-redirect-,\>,compress _compress +-redirect-,-default-,-default- _files +-redirect-,\<,gunzip _gzip +-redirect-,\<,gzip _gzip +-redirect-,\>,gzip _gzip +-redirect-,\<,uncompress _compress +refile _mh +rehash _hash +removepkg _pkgtool +remsh _rlogin +renice _renice +repl _mh +reportbug _bug +retawq _webbrowser +rgview _vim +rgvim _vim +rlogin _rlogin +rmdel _sccs +rmdir _directories +rmf _mh +rmic _java +rmid _java +rmiregistry _java +rmm _mh +rmmod _modutils +rpm _rpm +rsh _rlogin +rsync _rsync +rtin _tin +rubber _rubber +rubber-info _rubber +rubber-pipe _rubber +ruby _ruby +rup _hosts +rusage _precommand +rview _vim +rvim _vim +rwho _hosts +sabcmd _sablotron +sact _sccs +scan _mh +sccs _sccs +sccsdiff _sccs +sched _sched +schroot _schroot +scp _ssh +screen _screen +sed _sed +serialver _java +service _service +set _set +setfattr _attr +setopt _setopt +sftp _ssh +sh _sh +shift _arrays +show _mh +showchar _psutils +showmount _showmount +skipstone _webbrowser +slitex _tex +slogin _ssh +slrn _slrn +smbclient _samba +smbcontrol _samba +smbstatus _samba +smit _smit +smitty _smit +soa _hosts +socket _socket +softwareupdate _softwareupdate +sortm _mh +source _source +spamassassin _spamassassin +sr _surfraw +srptool _gnutls +ssh _ssh +ssh-add _ssh +ssh-agent _ssh +sshfs _sshfs +ssh-keygen _ssh +star _tar +stat _stat +strip _strip +stty _stty +su _su +-subscript- _subscript +sudo _sudo +surfraw _surfraw +svn _subversion +svnadmin _subversion +svnadmin-static _subversion +sync _nothing +sysctl _sysctl +talk _other_accounts +tap2deb _twisted +tap2rpm _twisted +tapconvert _twisted +tar _tar +tcptraceroute _tcptraceroute +tcsh _sh +telnet _telnet +tex _tex +texi2dvi _texinfo +texindex _texinfo +tidy _tidy +-tilde- _tilde +time _precommand +times _nothing +tin _tin +tkconch _twisted +tkinfo _texinfo +tkmktap _twisted +tla _tla +totdconfig _totd +tpb _tpb +tpconfig _tpconfig +tpkg-debarch _toolchain-source +tpkg-install _toolchain-source +tpkg-install-libc _toolchain-source +tpkg-make _toolchain-source +tpkg-update _toolchain-source +tracepath _tracepath +tracepath6 _tracepath +traceroute _hosts +trap _trap +trial _twisted +true _nothing +tryaffix _ispell +ttyctl _ttyctl +tunctl _uml +tune2fs _tune2fs +twistd _twisted +txt _hosts +type _which +typeset _typeset +ulimit _ulimit +uml_mconsole _uml +uml_moo _uml +uml_switch _uml +umount _mount +unace _unace +unalias _aliases +uncompress _compress +unexpand _unexpand +unfunction _functions +unget _sccs +unhash _unhash +uniq _uniq +unlimit _limits +unpack _pack +unrar _rar +unset _vars +unsetopt _unsetopt +unzip _zip +update-alternatives _update-alternatives +update-rc.d _update-rc.d +upgradepkg _pkgtool +urpme _urpmi +urpmf _urpmi +urpmi _urpmi +urpmi.addmedia _urpmi +urpmi.removemedia _urpmi +urpmi.update _urpmi +urpmq _urpmi +urxvt _urxvt +uscan _uscan +useradd _user_admin +userdel _users +usermod _user_admin +val _sccs +valgrind _valgrind +-value- _value +-value-,ANT_ARGS,-default- _ant +-value-,CFLAGS,-default- _gcc +-value-,CPPFLAGS,-default- _gcc +-value-,-default-,-default- _value +-value-,DISPLAY,-default- _x_display +-value-,GREP_OPTIONS,-default- _grep +-value-,GZIP,-default- _gzip +-value-,LANG,-default- _locales +-value-,LANGUAGE,-default- _locales +-value-,LDFLAGS,-default- _gcc +-value-,LESSCHARSET,-default- _less +-value-,LESS,-default- _less +-value-,LPDEST,-default- _printers +-value-,P4CLIENT,-default- _perforce +-value-,P4MERGE,-default- _perforce +-value-,P4PORT,-default- _perforce +-value-,P4USER,-default- _perforce +-value-,PERLDOC,-default- _perldoc +-value-,PRINTER,-default- _printers +-value-,TERM,-default- _terminals +-value-,TERMINFO_DIRS,-default- _dir_list +-value-,TZ,-default- _time_zone +-value-,VALGRIND_OPTS,-default- _valgrind +-value-,WWW_HOME,-default- _urls +-value-,XML_CATALOG_FILES,-default- _xmlsoft +vared _vared +-vared- _in_vared +vim _vim +vimdiff _vim +vncserver _vnc +vncviewer _vnc +vserver _vserver +vux _vux +vuxctl _vux +w3m _w3m +wait _wait +wajig _wajig +wanna-build _wanna-build +websetroot _twisted +wget _wget +what _sccs +whatis _man +whence _which +where _which +whereis _whereis +which _which +whoami _nothing +whois _whois +whom _mh +wiggle _wiggle +write _users_on +www _webbrowser +xargs _xargs +xauth _xauth +xdpyinfo _x_utils +xdvi _xdvi +xev _x_utils +xfd _x_utils +xfig _xfig +xfontsel _x_utils +xhost _x_utils +xkill _x_utils +xli _xloadimage +xloadimage _xloadimage +xmllint _xmlsoft +xmodmap _xmodmap +xmosaic _webbrowser +xon _x_utils +xpdf _xpdf +xping _hosts +xrdb _x_utils +xscreensaver-command _xscreensaver +xset _xset +xsetbg _xloadimage +xsetroot _x_utils +xsltproc _xmlsoft +xterm _xterm +xtightvncviewer _vnc +xtp _imagemagick +xv _xv +xview _xloadimage +xvnc4viewer _vnc +xvncviewer _vnc +xwd _x_utils +xwininfo _x_utils +xwit _xwit +xwud _x_utils +yast _yast +yast2 _yast +ypbind _yp +ypcat _yp +ypmatch _yp +yppasswd _yp +yppoll _yp +yppush _yp +ypserv _yp +ypset _yp +ypwhich _yp +ypxfr _yp +ytalk _other_accounts +yum _yum +zcat _zcat +zcompile _zcompile +zcp _zmv +zdump _zdump +zed _zed +zen _webbrowser +zip _zip +zipinfo _zip +zle _zle +zln _zmv +zmail _mail +zmodload _zmodload +zmv _zmv +zone _hosts +zpty _zpty +zsh _sh +zstyle _zstyle +zxpdf _xpdf +) + +_services=( +bzcat bunzip2 +dch debchange +gzcat gunzip +Mail mail +mailx mail +nail mail +ncl nc +nedit-nc nc +pcat unpack +-redirect-,\<,bunzip2 bunzip2 +-redirect-,\<,bzip2 bzip2 +-redirect-,\>,bzip2 bunzip2 +-redirect-,\<,compress compress +-redirect-,\>,compress uncompress +-redirect-,\<,gunzip gunzip +-redirect-,\<,gzip gzip +-redirect-,\>,gzip gunzip +-redirect-,\<,uncompress uncompress +remsh rsh +slogin ssh +svnadmin-static svnadmin +) + +_patcomps=( +\*/\(init\|rc\[0-9S\]\#\).d/\* _init_d +zf\* _zftp +) + +_postpatcomps=( +\(p\[bgpn\]m\*\|\*top\[bgpn\]m\) _pbm +\(texi\(2\*\|ndex\)\) _texi +\(tiff\*\|\*2tiff\|pal2rgb\) _tiff +-value-,\(ftp\|http\(\|s\)\)_proxy,-default- _urls +-value-,LC_\*,-default- _locales +-value-,\*path,-default- _directories +-value-,\*PATH,-default- _dir_list +-value-,RUBY\(LIB\|OPT\|PATH\),-default- _ruby +\*/X11\(\|R\[456\]\)/\* _x_arguments +yodl\(\|2\*\) _yodl +) + +_compautos=( +_call_program +X +) + +zle -C _bash_complete-word .complete-word _bash_completions +zle -C _bash_list-choices .list-choices _bash_completions +zle -C _complete_debug .complete-word _complete_debug +zle -C _complete_help .complete-word _complete_help +zle -C _complete_tag .complete-word _complete_tag +zle -C _correct_filename .complete-word _correct_filename +zle -C _correct_word .complete-word _correct_word +zle -C _expand_alias .complete-word _expand_alias +zle -C _expand_word .complete-word _expand_word +zle -C _history-complete-newer .complete-word _history_complete_word +zle -C _history-complete-older .complete-word _history_complete_word +zle -C _list_expansions .list-choices _expand_word +zle -C _most_recent_file .complete-word _most_recent_file +zle -C _next_tags .list-choices _next_tags +zle -C _read_comp .complete-word _read_comp +bindkey '^X^R' _read_comp +bindkey '^X?' _complete_debug +bindkey '^XC' _correct_filename +bindkey '^Xa' _expand_alias +bindkey '^Xc' _correct_word +bindkey '^Xd' _list_expansions +bindkey '^Xe' _expand_word +bindkey '^Xh' _complete_help +bindkey '^Xm' _most_recent_file +bindkey '^Xn' _next_tags +bindkey '^Xt' _complete_tag +bindkey '^X~' _bash_list-choices +bindkey '^[,' _history-complete-newer +bindkey '^[/' _history-complete-older +bindkey '^[~' _bash_complete-word + +autoload -Uz _a2ps _aap _acpi _acroread _alias \ + _aliases _all_labels _all_matches _alternative _analyseplugin \ + _ant _antiword _apachectl _apm _approximate \ + _apt _aptitude _apt-move _apt-show-versions _arch_archives \ + _arch_namespace _arg_compile _arguments _arp _arping \ + _arrays _assign _attr _auto-apt _autocd \ + _bash_completions _baz _bindkey _bison _bittorrent \ + _bogofilter _brace_parameter _brctl _bsd_pkg _bts \ + _bug _builtin _bzip2 _bzr _cache_invalid \ + _cal _call_function _canonical_paths _ccal _cd \ + _cdcd _cdrecord _chflags _chkconfig _chmod \ + _chown _combination _command _command_names _compdef \ + _complete _complete_debug _complete_help _complete_tag _compress \ + _condition _configure _correct _correct_filename _correct_word \ + _cp _cpio _cplay _ctags_tags _cvs \ + _cvsup _cygcheck _cygpath _cygrunsrv _cygserver \ + _cygstart _darcs _date _dchroot _dcop \ + _dd _debchange _debdiff _debfoster _deb_packages \ + _debsign _default _defaults _describe _description \ + _dhclient _dict _dict_words _diff _diff_options \ + _diffstat _directories _directory_stack _dir_list _dirs \ + _disable _dispatch _dlocate _domains _dpkg \ + _dpkg-cross _dpkg_source _dput _du _dumper \ + _dupload _dvi _ecasound _echotc _echoti \ + _elinks _elm _email_addresses _emulate _enable \ + _enscript _equal _expand _expand_alias _expand_word \ + _fakeroot _fc _fetchmail _figlet _file_descriptors \ + _files _file_systems _find _finger _fink \ + _first _flasher _flex _floppy _fortune \ + _fsh _functions _fuser _fusermount _gcc \ + _gdb _generic _getclip _getconf _getent \ + _getfacl _git _global _global_tags _gnome-gv \ + _gnu_generic _gnutls _gpg _gphoto2 _gprof \ + _gqview _grep _groff _groups _gs \ + _guard _gv _gzip _hash _hdiutil \ + _history _history_complete_word _hosts _iconv _ifconfig \ + _ignored _imagemagick _init_d _in_vared _iptables \ + _irssi _ispell _iwconfig _java _java_class \ + _jobs _jobs_bg _jobs_builtin _jobs_fg _joe \ + _kfmclient _kill _killall _kld _knock \ + _kvno _last _less _limit _limits \ + _linda _links _lintian _list _loadkeys \ + _locales _logical_volumes _look _losetup _lp \ + _ls _lscfg _lsdev _lslv _lsof \ + _lspv _lsvg _lynx _lzop _mac_applications \ + _mac_files_for_application _madison _mail _mailboxes _main_complete \ + _make _make-kpkg _man _match _math \ + _mencal _menu _mere _mergechanges _message \ + _mh _mii-tool _mime_types _mkshortcut _mkzsh \ + _module-assistant _modutils _mondo _most_recent_file _mount \ + _mozilla _mpc _mplayer _mt _mtools \ + _mtr _multi_parts _mutt _my_accounts _mysqldiff \ + _mysql_utils _nautilus _ncftp _nedit _netcat \ + _net_interfaces _netscape _newsgroups _next_label _next_tags \ + _nice _nmap _normal _nothing _nslookup \ + _object_classes _oldlist _open _options _options_set \ + _options_unset _other_accounts _pack _parameter _parameters \ + _patch _path_files _pbm _pdf _perforce \ + _perl _perl_basepods _perldoc _perl_modules _php \ + _physical_volumes _pick_variant _pids _pine _ping \ + _piuparts _pkg-config _pkgtool _ports _postfix \ + _prcs _precommand _prefix _print _printenv \ + _printers _prompt _ps _pscp _pspdf \ + _psutils _pump _putclip _python _qiv \ + _qtplay _quilt _raggle _rake _rar \ + _rcs _read _read_comp _redirect _regex_arguments \ + _renice _requested _retrieve_cache _retrieve_mac_apps _rlogin \ + _rpm _rsync _rubber _ruby _sablotron \ + _samba _sccs _sched _schroot _screen \ + _sed _sep_parts _service _services _set \ + _set_command _setopt _setup _sh _showmount \ + _signals _slrn _smit _socket _softwareupdate \ + _source _spamassassin _ssh _sshfs _stat \ + _store_cache _strip _stty _su _sub_commands \ + _subscript _subversion _sudo _suffix_alias_files _surfraw \ + _sysctl _tags _tar _tar_archive _tcptraceroute \ + _telnet _terminals _tex _texi _texinfo \ + _tidy _tiff _tilde _tilde_files _time_zone \ + _tin _tla _toolchain-source _totd _tpb \ + _tpconfig _tracepath _trap _ttyctl _tune2fs \ + _twisted _typeset _ulimit _uml _unace \ + _unexpand _unhash _uniq _unsetopt _update-alternatives \ + _update-rc.d _urls _urpmi _urxvt _uscan \ + _user_admin _user_at_host _users _users_on _valgrind \ + _value _values _vared _vars _vim \ + _vnc _volume_groups _vorbis _vserver _vux \ + _w3m _wait _wajig _wanna-build _wanted \ + _webbrowser _wget _whereis _which _whois \ + _wiggle _xargs _x_arguments _xauth _x_borderwidth \ + _x_color _x_colormapid _x_cursor _x_display _xdvi \ + _x_extension _xfig _x_font _x_geometry _x_keysym \ + _xloadimage _x_locale _xmlsoft _x_modifier _xmodmap \ + _x_name _xpdf _x_resource _xscreensaver _x_selection_timeout \ + _xset _xt_arguments _xterm _x_title _xt_session_id \ + _x_utils _xv _x_visual _x_window _xwit \ + _yast _yodl _yp _yum _zcat \ + _zcompile _zdump _zed _zftp _zip \ + _zle _zmodload _zmv _zpty _zstyle +autoload -Uz +X _call_program + +typeset -gUa _comp_assocs +_comp_assocs=( ) diff --git a/.zlogin b/.zlogin index 6baebf8..a551157 100644 --- a/.zlogin +++ b/.zlogin @@ -1,13 +1,12 @@ -for i in {1..$COLUMNS} ; do echo -n "_" ; done -echo - -calendar -A0 | sed "s/^\(......\*.*\)/\1/" - -for i in {1..$COLUMNS} ; do echo -n "_" ; done +[ which calendar ] && \ +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 "" -source $ZDOTDIR/.keychain -keychain --quiet --stop others --inherit any +[ -f $ZDOTDIR/.keychain ] && source $ZDOTDIR/.keychain +[ which keychain ] && keychain --quiet --stop others --inherit any #keychain --quiet --quick id_dsa #keychain --quiet --quick 593F1F92 diff --git "a/.zsh/01_Exports.V\303\251lizy" "b/.zsh/01_Exports.V\303\251lizy" deleted file mode 100644 index e294216..0000000 --- "a/.zsh/01_Exports.V\303\251lizy" +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/zsh - -PATH+=:~/souche/tools/bin:/usr/local/urd2/bin:/usr/local/urd2/openrg2_6/mips-linux-uclibc/bin/ -MANPATH+=:/usr/local/urd2/man:~/souche/tools/man - -__PREFIX=/filer1/dev_users/hiegel/souche/tools/ - -# Modification de la couleur du prompt par défaut -PS1_USER_SSH=33 diff --git "a/.zsh/20_Variables.V\303\251lizy" "b/.zsh/20_Variables.V\303\251lizy" new file mode 100644 index 0000000..c3a2a62 --- /dev/null +++ "b/.zsh/20_Variables.V\303\251lizy" @@ -0,0 +1,10 @@ +#!/bin/zsh + +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/.zshrc b/.zshrc index 936dfc3..6146ac6 100644 --- a/.zshrc +++ b/.zshrc @@ -4,6 +4,7 @@ if [ -d $ZDOTDIR ]; then for script in $ZDOTDIR/??_*.zsh do source $script + # find host-based script and source it local_script="${script:r}.`hostname -s`" [ -f $local_script ] && source $local_script done diff --git a/00_Preambule.zsh b/00_Preambule.zsh index 317dcf0..fd52ce7 100644 --- a/00_Preambule.zsh +++ b/00_Preambule.zsh @@ -8,3 +8,17 @@ umask 002 ## [[ -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/01_Exports.VZY08001 b/01_Exports.VZY08001 deleted file mode 120000 index b4ada7f..0000000 --- a/01_Exports.VZY08001 +++ /dev/null @@ -1 +0,0 @@ -01_Exports.Vélizy \ No newline at end of file diff --git a/01_Exports.paranoid b/01_Exports.paranoid deleted file mode 100644 index fdb0660..0000000 --- a/01_Exports.paranoid +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/zsh -#export PRINTER=Gertrude -export PRINTER=Berthe diff --git a/01_Exports.prunelle b/01_Exports.prunelle deleted file mode 100644 index b6096ff..0000000 --- a/01_Exports.prunelle +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/zsh - -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 -fi - -PS1_USER="1" -PS1_USER_SSH="$PS1_USER" -PS1_ROOT="31;1" diff --git a/01_Exports.zsh b/01_Exports.zsh deleted file mode 100644 index 5c2c2ac..0000000 --- a/01_Exports.zsh +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/zsh - -export BC_ENV_ARGS="-q" -export EDITOR=${EDITOR:-vim} -export HISTFILE=".zsh/.history.zsh" -export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/libs -eval $(dircolors ~/.dir_colors 2>&-) -export PATH=$PATH:~/sbin:~/bin -export PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig -export TIME_STYLE="+%Y-%b-%d %H:%M" -export TZ="Europe/Paris" -source $ZDOTDIR/.keychain -# Set locales only if they are undefined -export LC_ALL=${LC_ALL:-fr_FR.UTF-8} -export LC_MESSAGES=${LC_MESSAGES:-fr_FR} -export MANPATH=$MANPATH:~/man -export NULLCMD=cat -unset LANG # Unuseful - -## -## basic setup -## -LOGCHECK=13 -WATCHFMT=$COLOR_BLUECLAIR"%n"$COLOR_END -WATCHFMT=$WATCHFMT" has "$COLOR_YELLOW"%a %l from %M" -WATCH=notme -WORDCHARS="*?-._[]~=&;!#$%^(){}<>" # I suppressed the '/' - -HISTFILE=$ZDOTDIR/.history -HISTSIZE=42000 -SAVEHIST=42000 - -## -## Prompts -## -# For more info on PROMPT expansion, see 'man zshmisc' -## - -PS1_ROOT=${PS1_ROOT:-31} -if ( [ "$SSH_TTY" = "" ] ) -then - PS1_USER=${PS1_USER:-34} -else - PS1_USER=${PS1_USER_SSH:-35} -fi - -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%}#%{%} " - -RPS1="%(?;;%{%}%?%{%}) %{[0;%(!."$PS1_ROOT"."$PS1_USER")m%}%D{%a%d%b|%H:%M'%S}%{%}" - -PS2="%{%}%B%_%b%{%}%B>%b%{%} " - -SPROMPT="zsh: %{%}%B«%R»%b%{%} ? Ce ne serait pas plutôt %{%}%B«%r»%b%{%} ? [nyae] " - -## -# PS3="?# " -# -# PS4="+%N:%i> " -## - - -#TIMEFMT="\`%J': %U user %S system %*E total (%P cpu)" diff --git a/02_Aliases.paranoid b/02_Aliases.paranoid deleted file mode 100644 index 283316c..0000000 --- a/02_Aliases.paranoid +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/zsh - -## 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/02_Aliases.prunelle b/02_Aliases.prunelle deleted file mode 100644 index f809d35..0000000 --- a/02_Aliases.prunelle +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/zsh -a port='sudo port' -a ls='ls -FG' -a aless='open -a /Applications/DarwinPorts/AquaLess.app' diff --git a/02_Aliases.zsh b/02_Aliases.zsh deleted file mode 100644 index d6b3f74..0000000 --- a/02_Aliases.zsh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/zsh -alias a='alias' - -a una=unalias - -a ...='cd ../..' - -a e='emacs' -a ne='emacs -nw' - -a close='eject -t' - -a rm='rm -i' -a mv='mv -i' -autoload zmv -a mmv='noglob zmv -W' - -a apt-get='sudo apt-get' - -a rt='find . -type f \( -name "*~" -o -name ".*~" -o -name "#*#" \) -exec rm -vf \{\} \;' - -a eg=egrep - -a hg='< $HISTFILE cat -n | grep' -##'hc' stands for something like 'fc' and 'hg'## -a hc='history 0| grep' -a lg='ls -lap | grep' - -a s='cd ..' -a so='cd ${OLDPWD}' - -a x=exit - -a ls='ls -F --color=always' -a l='ls -lh' -a ll='ls -l' -a la='ls -la' -a lc='ls -c' -a lm='ls -ma' -a lc1='\ls -c1' - -a definition='dict -h dict.org' -a traduction='dict -h localhost -P-' - -a dosbox='dosbox -c "mount c \"`pwd`\"" -c "mount d /cdrom -t cdrom" -c "c:" ' -a gnus='emacs -f gnus' - -#a make='make -j' diff --git a/02_Options.zsh b/02_Options.zsh deleted file mode 100644 index 19f1c1c..0000000 --- a/02_Options.zsh +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/zsh - -## -## Options -## -## man zshoptions(1) -## -## -setopt Always_Last_Prompt -setopt Always_to_End -setopt Auto_Cd -setopt Auto_Continue -setopt Auto_List -setopt Auto_Menu -setopt Auto_Param_Keys -#setopt Auto_Param_Slash -setopt Auto_PushD -unsetopt Cd_Able_Vars -setopt Complete_Aliases -setopt Complete_in_Word -setopt Correct -unsetopt Correct_All -#setopt Equals -#setopt Extended_Glob -unsetopt Extended_History -setopt Hash_Cmds -setopt Hash_Dirs -setopt Hist_Expire_Dups_First -setopt Hist_Ignore_All_Dups -setopt Hist_Ignore_Space -setopt Hist_No_Functions -setopt Hist_No_Store -setopt Hist_Reduce_Blanks -setopt Inc_Append_History -setopt Magic_Equal_Subst -setopt Mail_Warning -setopt Mark_Dirs -unsetopt Menu_Complete -setopt No_Bg_Nice -setopt No_Hup -setopt No_Prompt_Cr -setopt Numeric_Glob_Sort -unsetopt Prompt_Cr -setopt Pushd_Ignore_Dups diff --git a/03_Completion.zsh b/03_Completion.zsh deleted file mode 100644 index a3cc525..0000000 --- a/03_Completion.zsh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/zsh -# Fichier de conf pour la personnalisation de la complétion automagique :-) -# Hugues HIEGEL -# jeu mar 3 10:00:44 CET 2005 - -autoload -U compinit 2> /dev/null -compinit -i - -zstyle ':completion:*' menu select=2 -zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} - -# Premiers essais... -#_ssh_hosts=(${(o)${${(M)${(f)"$(<~/.ssh/config)"}##host*}/host /}%% *}) -#zstyle ':completion:*:*:ssh,scp:*' hosts $_ssh_hosts -#zstyle ':completion:*:(ssh|scp):*:my-accounts' hosts ${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[0-9]*}%%\ *}%%,*} - - - -# http://www.michael-prokop.at/computer/config/.zsh/zsh_completition - -zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd' -zstyle ':completion:*:killall:*' command 'ps -u $USER -o cmd' -zstyle ':completion:*:kill:*' insert-ids single -zstyle ':completion:*:*:kill:*' menu yes select -zstyle ':completion:*:kill:*' force-list always -#zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31' - -# ssh/scp-completion -zstyle ':completion:*:scp:*' tag-order \ - 'hosts:-host hosts:-domain:domain hosts:-ipaddr:IP\ address *' -zstyle ':completion:*:scp:*' group-order \ - users files all-files hosts-domain hosts-host hosts-ipaddr -zstyle ':completion:*:ssh:*' tag-order \ - users 'hosts:-host hosts:-domain:domain hosts:-ipaddr:IP\ address *' -zstyle ':completion:*:ssh:*' group-order \ - hosts-domain hosts-host users hosts-ipaddr -zstyle ':completion:*:(ssh|scp):*:hosts-host' ignored-patterns \ - '*.*' loopback localhost -zstyle ':completion:*:(ssh|scp):*:hosts-domain' ignored-patterns \ - '<->.<->.<->.<->' '^*.*' '*@*' -zstyle ':completion:*:(ssh|scp):*:hosts-ipaddr' ignored-patterns \ - '^<->.<->.<->.<->' '127.0.0.<->' -zstyle ':completion:*:(ssh|scp):*:users' ignored-patterns \ - adm bin daemon halt lp named shutdown sync -zstyle -e ':completion:*:(ssh|scp):*' hosts 'reply=( - ${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) \ - /dev/null)"}%%[# ]*}//,/ } - ${=${(f)"$(cat /etc/hosts(|)(N) <<(ypcat hosts 2>/dev/null))"}%%\#*} - ${${${(M)${(s:# :)${(zj:# :)${(Lf)"$([[ -f ~/.ssh/config ]] && <~/.ssh/config)"}%%\#*}}##host(|name) *}#host(|name) }/\*} - )' -# ${(A)ssh_config_hosts:=${${${${(@M)${(f)"$(<~/.ssh/config)"}:#Host *}#Host }:#*\**}:#*\?*}} - - diff --git a/04_KeyBindings.zsh b/04_KeyBindings.zsh deleted file mode 100644 index 225a2f2..0000000 --- a/04_KeyBindings.zsh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/zsh -## -## bindkey -## - -bindkey "\e[3~" delete-char # delete -bindkey "\e[2~" overwrite-mode # insert -bindkey "\e[A" up-line-or-history # up -bindkey "\e[B" down-line-or-history # down -bindkey "" history-search-backward # META-up -bindkey "" history-search-forward # META-down -bindkey "\e\e[C" forward-word # ESC right -bindkey "\e\e[D" backward-word # ESC left -bindkey "\e\e[3~" kill-region # ESC del - -#aterm -test $TERM = "rxvt" -o $TERM = "xterm" && -{ - bindkey "\e[1~" beginning-of-line # home - bindkey "\e[4~" end-of-line # end-of-line - bindkey "\eOc" forward-word # CTRL right - bindkey "\eOd" backward-word # CTRL left - bindkey "\e[3$" vi-set-buffer # SHIFT del - bindkey "\eOa" history-search-backward # CTRL UP - bindkey "\eOb" history-search-forward # CTRL DOWN -} -# (gnome-terminal) -test $TERM = "xterm" && -{ - bindkey "\eOH" beginning-of-line # home - bindkey "\eOF" end-of-line # end-of-line -} -#bindkey "\C-t" gosmacs-transpose-chars # J, ca c'est un truc pour toi -# ne pas oublier de s'en servir : -# vi-match-bracket est sur ^X^B par defaut -# npo : quote-region est sur ESC-" par defaut -# npo : which-command est sur ESC-? par defaut - diff --git a/05_Functions.zsh b/05_Functions.zsh deleted file mode 100644 index 20384aa..0000000 --- a/05_Functions.zsh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/zsh - -##[[ -t 1 ]] && -chpwd() -{ - case $TERM in - sun-cmd) print -Pn "\e]l%n@%m %~\e\\" ;; - *xterm*|rxvt|(k|E|dt)term|gnome-terminal) print -Pn "\e]0;%n@%m (%l) %~\a" ;; - esac -# print -P "%(/,%78>...>%/,%//)%b" -} - -precmd () -{ -# print -nP "%(?,,%{%}Foirage n°%{%}%?\n)%{%}" -} - -preexec () -{ - # nothing :) -} diff --git a/10_Options.zsh b/10_Options.zsh new file mode 100644 index 0000000..bec3477 --- /dev/null +++ b/10_Options.zsh @@ -0,0 +1,63 @@ +#!/bin/zsh + +## Zsh options +# +# zshoptions(1) +# + +# J'ai pas très bien compris mais en gros ça va me permettre +# d'être sûr de retrouver ma commande dans tous les cas... +setopt Always_Last_Prompt + +setopt Always_to_End + +# Je préfère nettement faire un "export" sur les variables qui +# m'intéressent plutôt qu'utiliser cette option, car ça fait un +# peu porkasse quand même... +unsetopt All_Export + +## ``cd'' automatique +# Si la commande n'existe pas et qu'elle correspond à +# un dossier, zsh fait automatiquement un ``cd'' dessus. +setopt Auto_Cd + +## Envoie le signal CONT aux jobs passés en arrière-plan. +setopt Auto_Continue + +## Complétion automatique +setopt Auto_List +unsetopt Auto_Menu +setopt Menu_Complete + +setopt Auto_Param_Keys +unsetopt Auto_Param_Slash +unsetopt Cd_Able_Vars +setopt Complete_Aliases +setopt Complete_in_Word +unsetopt Correct +setopt Correct_All +unsetopt Equals +unsetopt Extended_Glob +unsetopt Extended_History +setopt Hash_Cmds +setopt Hash_Dirs + +## Gestion de l'historique +setopt Hist_Expire_Dups_First +setopt Hist_Ignore_All_Dups +setopt Hist_Ignore_Space +setopt Hist_No_Functions +setopt Hist_No_Store +setopt Hist_Reduce_Blanks +setopt Inc_Append_History + + +setopt Magic_Equal_Subst +setopt Mail_Warning +setopt Mark_Dirs +setopt No_Bg_Nice +setopt No_Hup +setopt No_Prompt_Cr +setopt Numeric_Glob_Sort +unsetopt Prompt_Cr +setopt Pushd_Ignore_Dups diff --git a/20_Variables.VZY08001 b/20_Variables.VZY08001 new file mode 120000 index 0000000..10b5490 --- /dev/null +++ b/20_Variables.VZY08001 @@ -0,0 +1 @@ +20_Variables.Vélizy \ No newline at end of file diff --git a/20_Variables.paranoid b/20_Variables.paranoid new file mode 100644 index 0000000..fdb0660 --- /dev/null +++ b/20_Variables.paranoid @@ -0,0 +1,3 @@ +#!/bin/zsh +#export PRINTER=Gertrude +export PRINTER=Berthe diff --git a/20_Variables.prunelle b/20_Variables.prunelle new file mode 100644 index 0000000..3246375 --- /dev/null +++ b/20_Variables.prunelle @@ -0,0 +1,23 @@ +#!/bin/zsh + +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 new file mode 100644 index 0000000..881285b --- /dev/null +++ b/20_Variables.zsh @@ -0,0 +1,72 @@ +#!/bin/zsh + +## +## 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:}~/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='*?-._~=&;!#$%^' # 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 new file mode 100644 index 0000000..2dbf1e5 --- /dev/null +++ b/25_Prompts.zsh @@ -0,0 +1,56 @@ +#!/bin/zsh + +## 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 +# - 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 + +## Couleur par défaut pour le prompt ROOT (c'est super pour sudo, ça...) +PS1_ROOT=${PS1_ROOT:-31} +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} +fi + +## 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 +# 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%}#%{%} " + +# Prompt level 2 +PS2="%{%}%B%_%b%{%}%B>%b%{%} " + +# Prompt level 3 +PS3="?# " + +# Prompt level 4 +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}%{%}" + +# Ultime : prompt de correction :-) +SPROMPT="zsh: %{%}%B«%R»%b%{%} ? Vous ne vouliez pas plutôt %{%}%B«%r»%b%{%} ? [%BN%byae] " + diff --git a/30_Completion.zsh b/30_Completion.zsh new file mode 100644 index 0000000..42dc660 --- /dev/null +++ b/30_Completion.zsh @@ -0,0 +1,52 @@ +#!/bin/zsh +# Fichier de conf pour la personnalisation de la complétion automagique :-) +# Hugues HIEGEL +# jeu mar 3 10:00:44 CET 2005 + +autoload -U compinit 2> /dev/null +compinit -i + +zstyle ':completion:*' menu select=2 +zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} + +# Premiers essais... +#_ssh_hosts=(${(o)${${(M)${(f)"$(<~/.ssh/config)"}##host*}/host /}%% *}) +#zstyle ':completion:*:*:ssh,scp:*' hosts $_ssh_hosts +#zstyle ':completion:*:(ssh|scp):*:my-accounts' hosts ${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[0-9]*}%%\ *}%%,*} + + +# http://www.michael-prokop.at/computer/config/.zsh/zsh_completition + +zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd' +zstyle ':completion:*:killall:*' command 'ps -u $USER -o cmd' +zstyle ':completion:*:kill:*' insert-ids single +zstyle ':completion:*:*:kill:*' menu yes select +zstyle ':completion:*:kill:*' force-list always +#zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31' + +# ssh/scp-completion +zstyle ':completion:*:scp:*' tag-order \ + 'hosts:-host hosts:-domain:domain hosts:-ipaddr:IP\ address *' +zstyle ':completion:*:scp:*' group-order \ + users files all-files hosts-domain hosts-host hosts-ipaddr +zstyle ':completion:*:ssh:*' tag-order \ + users 'hosts:-host hosts:-domain:domain hosts:-ipaddr:IP\ address *' +zstyle ':completion:*:ssh:*' group-order \ + hosts-domain hosts-host users hosts-ipaddr +zstyle ':completion:*:(ssh|scp):*:hosts-host' ignored-patterns \ + '*.*' loopback localhost +zstyle ':completion:*:(ssh|scp):*:hosts-domain' ignored-patterns \ + '<->.<->.<->.<->' '^*.*' '*@*' +zstyle ':completion:*:(ssh|scp):*:hosts-ipaddr' ignored-patterns \ + '^<->.<->.<->.<->' '127.0.0.<->' +zstyle ':completion:*:(ssh|scp):*:users' ignored-patterns \ + adm bin daemon halt lp named shutdown sync +zstyle -e ':completion:*:(ssh|scp):*' hosts 'reply=( + ${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) \ + /dev/null)"}%%[# ]*}//,/ } + ${=${(f)"$(cat /etc/hosts(|)(N) <<(ypcat hosts 2>/dev/null))"}%%\#*} + ${${${(M)${(s:# :)${(zj:# :)${(Lf)"$([[ -f ~/.ssh/config ]] && <~/.ssh/config)"}%%\#*}}##host(|name) *}#host(|name) }/\*} + )' +# ${(A)ssh_config_hosts:=${${${${(@M)${(f)"$(<~/.ssh/config)"}:#Host *}#Host }:#*\**}:#*\?*}} + + diff --git a/40_KeyBindings.zsh b/40_KeyBindings.zsh new file mode 100644 index 0000000..f793a4c --- /dev/null +++ b/40_KeyBindings.zsh @@ -0,0 +1,98 @@ +#!/bin/zsh + +## Key bindings +# +# Lancez un chtit bindkey dans votre zsh pour voir... +# + +bindkey "\e[3~" delete-char # delete +bindkey "\e[2~" overwrite-mode # insert +bindkey "\e[A" up-line-or-history # up +bindkey "\e[B" down-line-or-history # down +bindkey "" history-search-backward # META-up +bindkey "" history-search-forward # META-down +bindkey "\e\e[C" forward-word # ESC right +bindkey "\e\e[D" backward-word # ESC left +bindkey "\e\e[3~" kill-region # ESC del + +# Pratique pour rehasher rapidement +bindkey -s "r" "rehash\n" +bindkey -s "R" "rehash\n" + +test $TERM = "rxvt" -o $TERM = "xterm" -o $TERM = "aterm" && +{ + bindkey "\e[1~" beginning-of-line # home + bindkey "\e[4~" end-of-line # end-of-line + bindkey "\eOc" forward-word # CTRL right + bindkey "\eOd" backward-word # CTRL left + bindkey "\e[3$" vi-set-buffer # SHIFT del + bindkey "\eOa" history-search-backward # CTRL UP + bindkey "\eOb" history-search-forward # CTRL DOWN +} +# (gnome-terminal) +test $TERM = "xterm" && +{ + bindkey "\eOH" beginning-of-line # home + bindkey "\eOF" end-of-line # end-of-line +} +#bindkey "\C-t" gosmacs-transpose-chars # J, ca c'est un truc pour toi +# ne pas oublier de s'en servir : +# vi-match-bracket est sur ^X^B par defaut +# npo : quote-region est sur ESC-" par defaut +# npo : which-command est sur ESC-? par defaut +# Lancez ``bindkey'' pour en savoir plus !! +"^A"-"^C" self-insert +"^D" list-choices +"^E"-"^F" self-insert +"^G" list-expand +"^H" vi-backward-delete-char +"^I" expand-or-complete +"^J" accept-line +"^K" self-insert +"^L" clear-screen +"^M" accept-line +"^N"-"^P" self-insert +"^Q" vi-quoted-insert +"^R" redisplay +"^S"-"^T" self-insert +"^U" vi-kill-line +"^V" vi-quoted-insert +"^W" vi-backward-kill-word +"^X" self-insert +"^X^R" _read_comp +"^X?" _complete_debug +"^XC" _correct_filename +"^Xa" _expand_alias +"^Xc" _correct_word +"^Xd" _list_expansions +"^Xe" _expand_word +"^Xh" _complete_help +"^Xm" _most_recent_file +"^Xn" _next_tags +"^Xt" _complete_tag +"^X~" _bash_list-choices +"^Y"-"^Z" self-insert +"^[" vi-cmd-mode +"^[^[[3~" kill-region +"^[^[[A" history-search-backward +"^[^[[B" history-search-forward +"^[^[[C" forward-word +"^[^[[D" backward-word +"^[," _history-complete-newer +"^[/" _history-complete-older +"^[OA" vi-up-line-or-history +"^[OB" vi-down-line-or-history +"^[OC" vi-forward-char +"^[OD" vi-backward-char +"^[R" "rehash^J" +"^[[2~" overwrite-mode +"^[[3~" delete-char +"^[[A" up-line-or-history +"^[[B" down-line-or-history +"^[[C" vi-forward-char +"^[[D" vi-backward-char +"^[r" "rehash^J" +"^[~" _bash_complete-word +"^\\\\"-"~" self-insert +"^?" vi-backward-delete-char +"\M-^@"-"\M-^?" self-insert diff --git a/50_Debug.zsh b/50_Debug.zsh deleted file mode 100644 index 08158de..0000000 --- a/50_Debug.zsh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/zsh - -cd_back() { -# for folder in $@ -# do -# cd $(echo $folder | sed "s:[^/]\+:..:g") -# done - cd $1 "" -} - -ldd() -{ - #LDD=$(dlocate ldd | egrep "bin/ldd$" | head -n1 | cut -d' ' -f2) - LDD=/usr/bin/ldd - $LDD $@ | sed "s/\(.*local.*\)/\1/;s/\(.*not found.*\)/\1/" | tr -d ' ' -} - -exports() -{ - if ( [ $# -ne 0 ] ) - then - if ( [ $1 != "-" ] ) - then - export LD_LIBRARY_PATH=${1}/lib - export PKG_CONFIG_PATH=$LD_LIBRARY_PATH/pkgconfig - export ACLOCAL_FLAGS="-I ${1}/share/aclocal" - else - unset LD_LIBRARY_PATH - unset PKG_CONFIG_PATH - unset ACLOCAL_FLAGS - fi - fi - - for i in LD_LIBRARY_PATH PKG_CONFIG_PATH ACLOCAL_FLAGS - do - if ( [ ! -z ${(P)i} ] ) ; then - echo "$i: "${(P)i}"" - else - echo "$i is unset." - fi - done -} - -preexec() -{ - if ( [ "$DEBUG_MODE" = "yes" ] ) - then - fi -} - -precmd() -{ - if ( [ "$DEBUG_MODE" = "yes" ] ) - then - exports - fi -} diff --git a/70_Aliases.paranoid b/70_Aliases.paranoid new file mode 100644 index 0000000..283316c --- /dev/null +++ b/70_Aliases.paranoid @@ -0,0 +1,7 @@ +#!/bin/zsh + +## 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 new file mode 100644 index 0000000..f809d35 --- /dev/null +++ b/70_Aliases.prunelle @@ -0,0 +1,4 @@ +#!/bin/zsh +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 new file mode 100644 index 0000000..34cea17 --- /dev/null +++ b/70_Aliases.zsh @@ -0,0 +1,46 @@ +#!/bin/zsh +alias a='alias' + +a una=unalias + +a e='emacs' +a ne='emacs -nw' + +a close='eject -t' + +a rm='rm -i' +a mv='mv -i' +autoload zmv +a mmv='noglob zmv -W' + +a apt-get='sudo apt-get' + +a rt='find . -type f \( -name "*~" -o -name ".*~" -o -name "#*#" \) -exec rm -vf \{\} \;' + +a eg=egrep + +a hg='< $HISTFILE cat -n | grep' +##'hc' stands for something like 'fc' and 'hg'## +a hc='history 0| grep' +a lg='ls -lap | grep' + +a s='cd ..' +a so='cd ${OLDPWD}' + +a x=exit + +a ls='ls -F --color=always' +a l='ls -lh' +a ll='ls -l' +a la='ls -la' +a lc='ls -c' +a lm='ls -ma' +a lc1='\ls -c1' + +a definition='dict -h dict.org' +a traduction='dict -h localhost -P-' + +a dosbox='dosbox -c "mount c \"`pwd`\"" -c "mount d /cdrom -t cdrom" -c "c:" ' +a gnus='emacs -f gnus' + +#a make='make -j' diff --git a/80_Functions.zsh b/80_Functions.zsh new file mode 100644 index 0000000..9bdfc60 --- /dev/null +++ b/80_Functions.zsh @@ -0,0 +1,24 @@ +#!/bin/zsh + +[[ -t 1 ]] && +chpwd() +{ + case $TERM in + sun-cmd) + print -Pn "\e]l%n@%m %~\e\\" ;; + *xterm*|rxvt|(k|E|dt)term|gnome-terminal) + print -Pn "\e]0;%n@%m (%l) %~\a" ;; + esac + #print -P "%(/,%78>...>%/,%//)%b" +} + +precmd () +{ +## [[ -t 1 ]] && +# print -nP "%(?,,%{%}Foirage n°%{%}%?\n)%{%}" +} + +preexec () +{ + #nothing :) +} diff --git a/85_Debug.zsh b/85_Debug.zsh new file mode 100644 index 0000000..08158de --- /dev/null +++ b/85_Debug.zsh @@ -0,0 +1,57 @@ +#!/bin/zsh + +cd_back() { +# for folder in $@ +# do +# cd $(echo $folder | sed "s:[^/]\+:..:g") +# done + cd $1 "" +} + +ldd() +{ + #LDD=$(dlocate ldd | egrep "bin/ldd$" | head -n1 | cut -d' ' -f2) + LDD=/usr/bin/ldd + $LDD $@ | sed "s/\(.*local.*\)/\1/;s/\(.*not found.*\)/\1/" | tr -d ' ' +} + +exports() +{ + if ( [ $# -ne 0 ] ) + then + if ( [ $1 != "-" ] ) + then + export LD_LIBRARY_PATH=${1}/lib + export PKG_CONFIG_PATH=$LD_LIBRARY_PATH/pkgconfig + export ACLOCAL_FLAGS="-I ${1}/share/aclocal" + else + unset LD_LIBRARY_PATH + unset PKG_CONFIG_PATH + unset ACLOCAL_FLAGS + fi + fi + + for i in LD_LIBRARY_PATH PKG_CONFIG_PATH ACLOCAL_FLAGS + do + if ( [ ! -z ${(P)i} ] ) ; then + echo "$i: "${(P)i}"" + else + echo "$i is unset." + 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 a0b8cf0..e44fc29 100644 --- a/99_Start.zsh +++ b/99_Start.zsh @@ -1,6 +1,4 @@ #!/bin/zsh -## -## misc commands -## +## Hop on rafraîchit le titre de la fenêtre chpwd -- cgit v1.2.3