SunOS.zsh 745 B

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