FreeBSD.zsh 713 B

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