File:  [Paefchen] / home / as / .csh / path.csh
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Mon Jan 7 06:03:02 2008 UTC (16 years, 10 months ago) by as
Branches: MAIN
CVS tags: HEAD
Hello My Home ;)

# $Paefchen: home/as/.csh/path.csh,v 1.1 2008/01/07 06:03:02 as Exp $

# CSHRC_RELOAD: YES
# CSHRC_ROMPTONLY: NO
# CSHRC_DESCR: Pfade neu einlesen

if ($OSTYPE:al == 'darwin') then

if (! $?PATH) setenv PATH
if (! $?MANPATH) setenv MANPATH
if (! $?INFOPATH) setenv INFOPATH

if (! $?AS_CSHRC_PATH_BEGIN) set AS_CSHRC_PATH_BEGIN
if (! $?AS_CSHRC_PATH_AFTER) set AS_CSHRC_PATH_AFTER

switch ($OSTYPE:al)
case freebsd:
	path_add_after MANPATH /usr/share/man
	path_add_after MANPATH /usr/local/man
	if (-d /usr/share/info) then
		path_add_after INFOPATH /usr/share/info
	endif
	path_add_after INFOPATH /usr/local/info
	breaksw
endsw

foreach where (BEGIN AFTER)
	set list = `eval echo '$'"AS_CSHRC_PATH_${where}"`
	foreach _path ($list)
		set add_path = "path_add_$where:al"
		eval $add_path PATH $_path/bin
		eval $add_path PATH $_path/sbin
		eval $add_path MANPATH $_path/man
		eval $add_path MANPATH $_path/share/man
		eval $add_path INFOPATH $_path/info
		eval $add_path INFOPATH $_path/share/info
	end
end

unset where list _path add_path

rehash

endif