Code:Zshalias

My .zalias file. Alias definitions for use in the zsh shell. See also Shell configuration files. This file is sourced from my .zshrc file.

## ## alias mv='nocorrect mv -i'      # no spelling correction on mv alias cp='nocorrect cp -ip'      # no spelling correction on cp alias mkdir='nocorrect mkdir'    # no spelling correction on mkdir alias rm='nocorrect rm -i'      # no spelling correction on mv alias scp='scp -p'               # preserve permissions alias find='noglob find' if ls --version 2> /dev/null | grep -E "(.+utils)"> /dev/null 2>&1; then # GNU version of ls    alias ls="ls -p --color=auto" else # BSD version of ls    alias ls="ls -FG" fi alias ll='ls -l' alias la='ls -a' alias lsa='ls -ld .*' ## ## files     { find ${1} -type f -print ; } ff        { find. -name ${1} -print ; } word      { fgrep -i "$*" /usr/dict/web2 ; } wordcount { cat "${1}" | tr -s ' 	.,;:?\![]"' '\012' | \ 	       cat -n | tail -1 | awk '{print $1}' ; } function vnctunnel { ssh $* -L 5900:127.0.0.1:5900 } function gr { find . -type f | xargs grep -n $* | more } #	fi #fi
 * 1) User defined alias script for zsh
 * 2) This file is sourced from .zshrc
 * 3) See also /etc/bash_aliases for the global bash equivalent
 * 4) See also .alias.csh for the csh/tcsh equivalent
 * 1) Note: bash and zsh do not allow spaces before or after the "="!, unlike csh
 * 1) Aliases
 * 1) Set up aliases
 * 1) alias grep=egrep
 * 2) alias topcpu='/usr/bin/top -ocpu -R -F -s 2 -n30'
 * 1) coloured ls output
 * 1) List only directories and symbolic
 * 2) links that point to directories
 * 3) alias lsd='ls -ld *(-/DN)'
 * 1) List only file beginning with "."
 * 1) Functions
 * 1) Shell functions
 * 2) setenv { typeset -x "${1}${1:+=}${(@)argv[2,$#]}" } # csh compatibility
 * 3) freload { while (( $# )); do; unfunction $1; autoload -U $1; shift; done }
 * 1) if [ $?TERM_PROGRAM ]; then
 * 2) 	if [ "$TERM_PROGRAM" == "Apple_Terminal" ]; then
 * 3) 		settermtitle { echo -n "�]2;${1}�" ; }