SunOS.zsh 837 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #
  2. # SunOS, Solaris Stuff
  3. #
  4. PATH=$PATH:/usr/ccs/bin:/usr/sfw/bin:/usr/openwin/bin
  5. MANPATH=/usr/man
  6. # pkgsrc
  7. if [ -d /usr/pkg ]; then
  8. PATH=$PATH:/usr/pkg/bin:/usr/pkg/sbin
  9. MANPATH=$MANPATH:/usr/pkg/man
  10. fi
  11. # blastwave
  12. if [ -d /opt/csw ]; then
  13. PATH=$PATH:/opt/csw/bin:/opt/csw/sbin
  14. MANPATH=$MANPATH:/opt/csw/man
  15. fi
  16. export PATH MANPATH
  17. # GNU ls(1) from SunOS ports is called gls(1)/gdircolors(1).
  18. if -exe gls; then
  19. if [ "$TERM" != 'dumb' ]; then
  20. if -exe gdircolors; then
  21. eval $(gdircolors -b)
  22. fi
  23. alias ls='gls -h --color=auto'
  24. alias l='gls -lh --color=auto'
  25. else
  26. alias ls='gls -h'
  27. alias l='gls -lh'
  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