Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

multiple OSes



i recently had the misfortune being assigned to a project on solaris(-10). having a strong freebsd background and being comfortable on linux, i'd have to say that solaris pretty much sucks.

but i'm not here to complain, i'm here to ask a question to those of you who use zsh on more than one OS: what's in your ~/.zshrc to set things up differently for different OSes?

what i've learned so far on solaris is along these lines (but not yet tested):

## this seems to cause problems on solaris - so don't do it there
[[ -z "${OSTYPE##solaris*}" ]] || MANPATH=$(manpath 2> /dev/null)

## why does solaris suck?
[[ -z "${OSTYPE##solaris*}" ]] && PATH=$PATH/usr/ucb:${HOME}/bin:

also, i've got this in my ~/.zshrc:
  alias rm="rm -i" # safety first!
which causes a problem on solaris... instead of:
	rm -rf /junk
i have to do this:
	command rm -rf /junk

is there a better way to assign that alias to rm if i'm on solaris?


--
        ...atom

 ________________________
 http://atom.smasher.org/
 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
 -------------------------------------------------

	"We cannot simply suspend or restrict civil liberties until
	 the War of Terror is over, because the War on Terror is
	 unlikely ever to be truly over... September 11, 2001,
	 already a day of immeasurable tragedy, cannot be the day
	 liberty perished in this country."
		-- Judge Gerald Tjoflat, 16 Oct 2004




Messages sorted by: Reverse Date, Date, Thread, Author