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

Re: .zshenv file syntax: spanning lines with comments



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