alias.zsh 922 B

12345678910111213141516171819202122232425262728293031
  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. alias grep="grep --color=tty"
  13. [ "$SUDO_USER" -a $UID = 0 ] && alias emacs="emacs -u $SUDO_USER -nw"
  14. [ "$SUDO_USER" -a $UID = 0 ] && alias e="emacs -u $SUDO_USER -nw"
  15. [ -x "$(whence ccze)" ] && alias lm="tail -n 60 -f /var/log/syslog | ccze"
  16. [ -x "$(whence pydf)" ] && alias df="pydf -h"
  17. [ -x "$(whence colormake)" ] && alias make="colormake"
  18. # git stuff
  19. [ -z "$GIT_PAGER" ] && [ -x =less ] && export GIT_PAGER=less
  20. [ -z "$GIT_PAGER" ] && [ -x =more ] && export GIT_PAGER=more
  21. [ -z "$GIT_PAGER" ] && export GIT_PAGER=cat
  22. alias git="PAGER=$GIT_PAGER git"
  23. unset GIT_PAGER
  24. #pager stuff
  25. [ -x "$(whence most)" ] && export PAGER=most && alias more='most' && alias less='most'