SunOS.zsh 965 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. if [ -r ~/.dircolors ]; then
  22. eval $(gdircolors -b ~/.dircolors)
  23. else
  24. eval $(gdircolors -b)
  25. fi
  26. fi
  27. alias ls='gls -h --color=auto'
  28. alias l='gls -lh --color=auto'
  29. else
  30. alias ls='gls -h'
  31. alias l='gls -lh'
  32. fi
  33. fi
  34. # GNU tar is called gtar
  35. if -exe gtar; then
  36. alias tar='gtar'
  37. fi
  38. # GNU find is called gfind
  39. if -exe gfind; then
  40. alias find='gfind'
  41. fi