FreeBSD.zsh 891 B

12345678910111213141516171819202122232425262728293031323334
  1. # using colortail if available
  2. [ -x "$(whence colortail)" ] && alias lm="colortail -n 60 -k /usr/local/share/examples/colortail/conf.messages -f /var/log/messages"
  3. # GNU ls(1) from FreeBSD ports is called gnuls(1).
  4. if [ -x "$(whence gnuls)" ]; then
  5. if [ "$TERM" != "dumb" ]; then
  6. if [ -r "$DOTZSHDIR/config/dircolors" ]; then
  7. eval $(dircolors -b $DOTZSHDIR/config/dircolors)
  8. else
  9. eval $(dircolors -b)
  10. fi
  11. alias ls="gnuls -h --color=auto"
  12. alias l="gnuls -lh --color=auto"
  13. else
  14. alias ls="gnuls -h"
  15. alias l="gnuls -lh"
  16. fi
  17. else
  18. if [ "$TERM" != "dumb" ]; then
  19. export LSCOLORS="exfxbxdxcxegedabagacad"
  20. alias ls="ls -GFh"
  21. alias l="ls -lGFh"
  22. else
  23. alias ls="ls -Fh"
  24. alias l="ls -lFh"
  25. fi
  26. fi
  27. # GNU tar from SunOS ports is called gtar
  28. [ -x "$(whence gtar)" ] && alias tar="gtar"
  29. # GNU find is called gfind
  30. [ -x "$(whence gfind)" ] && alias find="gfind"