zsh_aliases: saved the default aliases of Ubuntu default bashrc from bashrc of bash-things.

This commit is contained in:
Mika Suomalainen 2011-10-02 19:52:12 +03:00
parent dca7294e3a
commit a523216923
1 changed files with 18 additions and 0 deletions

View File

@ -97,3 +97,21 @@ alias theme="prompt "
alias vipw="\vipw && \vipw -s && \vipw -g && \visudo"
alias visudo="\visudo && \vipw && \vipw -g && \vipw -s"
alias vigr="\vigr && \vigr -s && \vigr -p && \visudo"
## -- Start of aliases which are saved from Ubuntu default bashrc. --
# enable color support of ls and also add handy aliases
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# Add an "alert" alias for long running commands. Use like so:
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
## -- End of aliases which are saved from Ubuntu default bashrc. --