Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: multiple OSes
- X-seq: zsh-users 12164
- From: Atom Smasher <atom@xxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: multiple OSes
- Date: Thu, 1 Nov 2007 23:53:54 +1300 (NZDT)
- In-reply-to: <20071101103614.GB5492@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Openpgp: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt
- References: <20071101093453.40647.qmail@xxxxxxxxxxx> <20071101103614.GB5492@xxxxxxxxxxxxxxx>
On Thu, 1 Nov 2007, Stephane Chazelas wrote:
[[ $OSTYPE = solaris* ]]
==============
cool, i forgot about that.
case $OSTYPE in
(solaris*) ...
;;
(*) ...
;;
esac
================
at some point i'll have a case statement. i'm not there yet.
Also I think you meant
PATH=$PATH:/usr/ucb:${HOME}/bin:
Also, if you'd like Solaris to behave in a more Unixy way, you
could add the Unix PATH in front:
PATH=$(command -p getconf PATH):$PATH:/usr/ucb:${HOME}/bin:
(that might break some scripts though).
==================
good stuff.
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?
[...]
zmodload -i zsh/files &&
disable chown chgrp ln mkdir mv rmdir sync
=================
very cool! thanks!
--
...atom
________________________
http://atom.smasher.org/
762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
-------------------------------------------------
"The livestock sector is a major player [in climate
change], responsible for 18% of greenhouse gas
emissions measured in CO2 equivalent. This is a higher
share than transport."
-- Livestock's long shadow, 2006
UN report sponsored by WTO, EU, AS-AID, FAO, et al
Messages sorted by:
Reverse Date,
Date,
Thread,
Author