FreeBSD.zsh 841 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #
  2. # FreeBSD stuff
  3. #
  4. # GNU ls(1) from FreeBSD ports is called gnuls(1).
  5. if -exe gnuls; then
  6. if [ "$TERM" != 'dumb' ]; then
  7. if -exe gdircolors; then
  8. if [ -r ~/.dircolors ]; then
  9. eval $(gdircolors -b ~/.dircolors)
  10. else
  11. eval $(gdircolors -b)
  12. fi
  13. fi
  14. alias ls='gnuls -h --color=auto'
  15. alias l='gnuls -lh --color=auto'
  16. else
  17. alias ls='gnuls -h'
  18. alias l='gnuls -lh'
  19. fi
  20. else
  21. if [ "$TERM" != 'dumb' ]; then
  22. export LSCOLORS='exfxbxdxcxegedabagacad'
  23. alias ls='ls -GFh'
  24. alias l='ls -lGFh'
  25. else
  26. alias ls='ls -Fh'
  27. alias l='ls -lFh'
  28. fi
  29. fi
  30. # GNU tar is called gtar
  31. if -exe gtar; then
  32. alias tar='gtar'
  33. fi
  34. # GNU find is called gfind
  35. if -exe gfind; then
  36. alias find='gfind'
  37. fi