Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: .zshenv file syntax: spanning lines with comments
- X-seq: zsh-users 352
- From: "David Kågedal" <davidk@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: Re: .zshenv file syntax: spanning lines with comments
- Date: 09 Aug 1996 16:58:43 +0200
- In-reply-to: Benjamin Drago's message of Thu, 8 Aug 1996 19:22:44 -0500
- References: <199608090022.TAA14251@xxxxxxxxxxxxxxxx>
- Sender: davidk@xxxxxxxxxxxxxx
Benjamin Drago <drago@xxxxxxxxx> writes:
> what I would like to do:
>
> export PATH=/home/$USER/bin/$OSTYPE: # arch dependent binaries
> /home/$USER/bin: # arch independent scripts
> /usr/local/bin: # local apps
> /opt/gnu/bin: # gnu tools
> ...
The simplest way is probably to use $path instead. That is a list
variable that is kept in sync with $PATH
path=( /home/$USER/bin/$OSTYPE # arch dependent binaries
/home/$USER/bin # arch independent scripts
/usr/local/bin # local apps
/opt/gnu/bin # gnu tools
...
)
(It works for me, at least)
--
David Kågedal Lysator Academic Computer Society davidk@xxxxxxxxxxxxxx
http://www.lysator.liu.se/~davidk/ +46-13 17 65 89
Messages sorted by:
Reverse Date,
Date,
Thread,
Author