6 # Former \!* using tcsh aliases have been converted to functions
11 # One character aliases
15 alias g='fgrep --color=auto'
22 # Two character aliases
23 alias eg='egrep --color=auto'
24 function ff() { find . -name "$@" }
25 alias gr='grep --color=auto'
28 function df() { command df -TP "$@" | column -t }
30 alias mx="nslookup -sil -q=mx"
31 alias ns="nslookup -sil -q=ns"
33 alias ls='ls -F --color=auto'
37 # Three character aliases
38 alias acs='apt-cache show'
39 alias acp='apt-cache policy'
40 alias ac/='apt-cache search'
41 alias af/='apt-file search'
42 alias afs='apt-file search'
43 alias afl='apt-file list'
44 alias afu='apt-file update'
45 alias ag/='aptitude search'
46 alias agi='aptitude install'
47 alias ag+='aptitude install'
48 alias ag-='aptitude remove'
49 alias agr='aptitude remove'
50 alias ag_='aptitude purge'
51 alias agp='aptitude purge'
52 alias agu='aptitude update'
53 alias agh='aptitude hold'
54 alias agc='apt-get clean'
55 alias agw='aptitude why'
56 alias 'a-u'='aptitude -u'
57 alias asv='apt-show-versions'
58 function ffi() { find . -iname "$@" }
59 function lpr() { command lpr "$@"; lpq }
60 alias cls=clear # Yeah, that's from DOS
61 alias ino='inotail -f'
67 # Set the title to something more obvious, e.g. the expanded
69 print -Pn "\e]0;%n@%m: autossh -t $* 'screen -RdU'\a";
70 autossh -x -a -t "$@" 'screen -RdU'
74 # Four character aliases
76 # Set the title to something more obvious, e.g. the expanded
78 print -Pn "\e]0;%n@%m: autossh $*\a";
83 fucntion http() { telnet $1 80 }
84 alias root='ssh root@localhost'
85 alias acss='apt-cache showsrc'
86 alias agsu='aptitude safe-upgrade'
87 alias agdu='aptitude full-upgrade'
88 alias agma='aptitude markauto'
89 alias agri='aptitude reinstall'
90 alias aguh='aptitude unhold'
91 alias agbd='aptitude build-dep'
92 alias agwn='aptitude why-not'
94 # Five character aliases
95 alias deurl='$HOME/bin/url_decode.pl'
96 function perlv() { perl -le "use $1; print "'$'"$1"'::VERSION;' }
97 alias acsrc='apt-cache showsrc'
98 alias aguma='aptitude unmarkauto'
100 if [ $# -eq 0 ]; then
101 command mount | column -t
108 alias mmv='noglob mmv'
109 alias wget='noglob wget'
110 alias find='noglob find'
111 alias clive='noglob clive'
112 alias clivescan='noglob clivescan'
113 alias translate='noglob translate'
114 alias links='noglob links'
115 alias links2='noglob links2'
116 alias xlinks2='noglob xlinks2'
117 alias lynx='noglob lynx'
122 # ls sorting (Idea from zsh book)
124 alias lssmall=ls -lhS
128 # grep with color by default
129 alias grep='grep --color=auto'
130 alias fgrep='fgrep --color=auto'
131 alias egrep='egrep --color=auto'
134 for i in sha512 sha256 sha1 md5; do
135 ssl-cert-$i() { openssl x509 -noout -fingerprint -$i -in $1 }
138 ssl-cert-fingerprints() {
139 for i in sha512 sha256 sha1 md5; do
145 openssl x509 -noout -text -in $1
146 ssl-cert-fingerprints $1
150 alias setvi='export EDITOR=vi VISUAL=vi'
151 alias setvim='export EDITOR=vim VISUAL=vim'
152 alias setzile='export EDITOR=zile VISUAL=zile'
153 alias setemacs='export EDITOR="emacsclient -a emacs" VISUAL="emacsclient -a emacs"'
154 #alias edit='$EDITOR'
155 alias vt100='export TERM=vt100'
158 #alias y='echo "Hallo, sind wir noch wach, oder sind wir wieder auf die Y-Taste gefallen? ;-)"'
167 ### Laden weiterer Aliasse
169 #alias xal='source ~/.Xalias'
171 #if ( -f $home/.alias.mtools ) then
172 # source $home/.alias.mtools
174 #if ( -f $home/.alias.wapua ) then
175 # source $home/.alias.wapua
179 # Idea from Sven's zsh Book (and yeah I overwrite the previous reload
180 # function which reloaded the zshrc.
181 start stop restart reload force-reload() {
182 sudo invoke-rc.d $1 $0
185 # From http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=299228
187 grep-dctrl -F Build-Depends "$1" -s Package /var/lib/apt/lists/*_Sources \