alias.zsh 653 B

12345678910111213141516171819202122
  1. # common aliases
  2. alias rm="rm -i"
  3. alias mv="mv -i"
  4. alias cp="cp -i"
  5. alias vlock="clear; vlock"
  6. alias lm="tail -n 60 -f /var/log/messages"
  7. alias df="df -h"
  8. alias emacs="emacs -nw"
  9. alias e="emacs -nw"
  10. alias rsu="sudo zsh"
  11. alias zconf="source ~/.zshrc"
  12. [ "$SUDO_USER" -a $UID = 0 ] && alias emacs="emacs -u $SUDO_USER -nw"
  13. [ "$SUDO_USER" -a $UID = 0 ] && alias e="emacs -u $SUDO_USER -nw"
  14. [ -x "$(whence ccze)" ] && alias lm="tail -n 60 -f /var/log/messages | ccze"
  15. [ -x "$(whence pydf)" ] && alias df="pydf -h"
  16. [ -x "$(whence most)" ] && export PAGER=most && alias more='most' && alias less='most'
  17. [ -x "$(whence colorgcc)" ] && export CC="colorgcc"