blob: 08f48e24d1c16712fe2cd42ed1399e0149a6a2cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
##
## Part of configuration files for Zsh 4
## by Hugues Hiegel <hugues@hiegel.fr>
##
## NO WARRANTY PROVIDED, USE AT YOUR OWN RISKS
##
## You are encouraged to use, modify, and redistribute
## these files with or without this notice.
##
a -g ¬ISO='LC_ALL=fr_FR'
a -g ¬UTF='LC_ALL=fr_FR.UTF-8'
a -g ...=../..
a -g ....=../../..
a -g .....=../../../..
a -g ......=../../../../..
a -g .......=../../../../../..
a -g ........=../../../../../../..
a -g .........=../../../../../../../..
cmd_exists emacsclient && a e='emacsclient'
cmd_exists emacs && a ne='emacs -nw'
if ( cmd_exists vim )
then
a v='vim'
if ( vim --version | grep -- "+clientserver" >/dev/null )
then
if ( cmd_exists vims )
then
a vim='vim --servername `print -P "%l"`'
fi
fi
fi
cmd_exists eject && a close='eject -t'
a goto='cd -P' ## Resolve symlinks
a rm='rm -i'
a mv='mv -i'
a cp && una cp ## Dé-assigne les alias de ``cp''
autoload zmv
a mmv='noglob zmv -W'
normal_user && cmd_exists apt-get && a apt-get='sudo apt-get'
a rt='find -maxdepth 1 -type f \( -name "*~" -o -name ".*~" -o -name "#*#" -o -name ".*.swp" \) -exec rm -vf \{\} \;'
a RT='find -type f \( -name "*~" -o -name ".*~" -o -name "#*#" -o -name ".*.swp" \) -exec rm -vf \{\} \;'
a grep='grep --color=auto'
a egrep='egrep --color=auto'
# Was 'hg', but conflicts with Mercurial..
a histg='history -E 0| grep'
a lg='ls -lap | grep'
a so='cd ${OLDPWD}'
#a x=exit
a ls="ls $LS_OPTIONS"
a l='ls -lh'
a ll='ls -l'
a la='ls -la'
a lc='ls -c'
a lc1='\ls -c1'
cmd_exists dict && a definition='dict -h dict.org'
cmd_exists dict && a traduction='dict -h localhost -P-'
cmd_exists dosbox && a dosbox='dosbox -c "mount c \"`pwd`\"" -c "mount d /cdrom -t cdrom" -c "c:" '
cmd_exists emacs && a gnus='emacs -f gnus'
#a make='make -j'
## Suffixes Aliases
# I don't like this, I never used it.
#
cmd_exists editdiff && a -s patch=editdiff
a -s c=$EDITOR
a -s h=$EDITOR
|