alias.zsh 892 B

123456789101112131415161718192021222324252627282930
  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/syslog"
  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/syslog | ccze"
  15. [ -x "$(whence pydf)" ] && alias df="pydf -h"
  16. [ -x "$(whence colormake)" ] && alias make="colormake"
  17. # git stuff
  18. [ -z "$GIT_PAGER" ] && [ -x =less ] && export GIT_PAGER=less
  19. [ -z "$GIT_PAGER" ] && [ -x =more ] && export GIT_PAGER=more
  20. [ -z "$GIT_PAGER" ] && export GIT_PAGER=cat
  21. alias git="PAGER=$GIT_PAGER git"
  22. unset GIT_PAGER
  23. #pager stuff
  24. [ -x "$(whence most)" ] && export PAGER=most && alias more='most' && alias less='most'