FreeBSD.zsh 889 B

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