FreeBSD.zsh 583 B

12345678910111213141516171819202122232425262728293031
  1. # FreeBSD stuff
  2. # GNU ls(1) from FreeBSD ports is called gnuls(1).
  3. if -exe gnuls ; then
  4. if [ "$TERM" != "dumb" ]; then
  5. eval $(gdircolors -b)
  6. alias ls="gnuls -h --color=auto"
  7. alias l="gnuls -lh --color=auto"
  8. else
  9. alias ls="gnuls -h"
  10. alias l="gnuls -lh"
  11. fi
  12. else
  13. if [ "$TERM" != "dumb" ]; then
  14. export LSCOLORS="exfxbxdxcxegedabagacad"
  15. alias ls="ls -GFh"
  16. alias l="ls -lGFh"
  17. else
  18. alias ls="ls -Fh"
  19. alias l="ls -lFh"
  20. fi
  21. fi
  22. # GNU tar is called gtar
  23. -exe gtar \
  24. && alias tar="gtar"
  25. # GNU find is called gfind
  26. -exe gfind \
  27. && alias find="gfind"