SunOS.zsh 892 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 [ -x "$(whence gdircolors)" ]; then
  17. if [ -r "$DOTZSHDIR/config/dircolors" ]; then
  18. eval $(gdircolors -b $DOTZSHDIR/config/dircolors)
  19. else
  20. eval $(gdircolors -b)
  21. fi
  22. if [ "$TERM" != "dumb" ]; then
  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. [ -x "$(whence gtar)" ] && alias tar="gtar"
  32. # GNU find is called gfind
  33. [ -x "$(whence gfind)" ] && alias find="gfind"