alias l='ls -lFh' alias la='ls -lAFh' alias lr='ls -tRFh' alias lt='ls -ltFh' alias ll='ls -l' alias ldot='ls -ld .*' alias lS='ls -1FSsh' alias lart='ls -1Fcart' alias lrt='ls -1Fcrt' alias grep='grep --color' alias sgrep='grep -R -n -H -C 5 --exclude-dir={.git,.svn,CVS} ' alias t='tail -f' alias dud='du -d 1 -h' alias duf='du -sh *' alias fd='find . -type d -name' alias ff='find . -type f -name' alias h='history' alias hgrep="fc -El 0 | grep" alias help='man' alias p='ps -f' alias sortnr='sort -n -r' alias unexport='unset' alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' if is-at-least 4.2.0; then if [[ -n "$BROWSER" ]]; then _browser_fts=(htm html de org net com at cx nl se dk) for ft in $_browser_fts; do alias -s $ft=$BROWSER; done fi _editor_fts=(cpp cxx cc c hh h inl asc txt TXT tex) for ft in $_editor_fts; do alias -s $ft=$EDITOR; done if [[ -n "$XIVIEWER" ]]; then _image_fts=(jpg jpeg png gif mng tiff tif xpm) for ft in $_image_fts; do alias -s $ft=$XIVIEWER; done fi _media_fts=(ape avi flv m4a mkv mov mp3 mpeg mpg ogg ogm rm wav webm) for ft in $_media_fts; do alias -s $ft=mplayer; done alias -s pdf=acroread alias -s ps=gv alias -s dvi=xdvi alias -s chm=xchm alias -s djvu=djview alias -s zip="unzip -l" alias -s rar="unrar l" alias -s tar="tar tf" alias -s tar.gz="echo " alias -s ace="unace l" fi zstyle -e ':completion:*:(ssh|scp|sftp|rsh|rsync):hosts' hosts 'reply=(${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) /dev/null)"}%%[# ]*}//,/ })'