FreeBSD.zsh 777 B

123456789101112131415161718192021222324252627282930313233
  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. eval $(gdircolors -b)
  8. alias ls="gnuls -h --color=auto"
  9. alias l="gnuls -lh --color=auto"
  10. else
  11. alias ls="gnuls -h"
  12. alias l="gnuls -lh"
  13. fi
  14. else
  15. if [ "$TERM" != "dumb" ]; then
  16. export LSCOLORS="exfxbxdxcxegedabagacad"
  17. alias ls="ls -GFh"
  18. alias l="ls -lGFh"
  19. else
  20. alias ls="ls -Fh"
  21. alias l="ls -lFh"
  22. fi
  23. fi
  24. # GNU tar is called gtar
  25. [ -x "$(whence gtar)" ] && alias tar="gtar"
  26. # GNU find is called gfind
  27. [ -x "$(whence gfind)" ] && alias find="gfind"