SunOS.zsh 885 B

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