Hello,
Should not something like this be in the global config.fish?
# FISH does not accept non existing paths, clean it. I find this annoying.
set tmp_path $PATH
setenv PATH
for path in $tmp_path
setenv PATH $PATH $path ^ /dev/null
end
if status --is-login
for line in (sh --noprofile --norc -c '. /etc/profile; env')
set variable (echo $line | cut -d '=' -f 1)
set value (echo $line | cut -d '=' -f 2-)
# Convert to array
if test (echo $value | grep ":")
set value (echo $value | sed -e 's/:/\n/g')
end
if test $variable = PATH
for path in $value
setenv PATH $PATH $path ^ /dev/null
end
else
setenv $variable $value ^ /dev/null
end
end
end
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users