I looking for a way to easier manage my $PATH
variables.
executing $PATH
returns me:
/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin: No such file or directory
To me this is total crap and hard to read.
Can they be listed like so:
/usr/local/bin:
/usr/local/sbin:
/usr/local/mysql/bin:
/opt/local/bin:
/opt/local/sbin:
/usr/bin:/bin:
/usr/sbin:
/sbin:
/usr/local/bin:
/usr/X11/bin: No such file or directory
I'd love to manage my $PATH using Ruby but naturally it looks like I needs to stay as part of my shell configuration files.
echo $PATH | sed -e 's/:/\n/g'
printenv PATH | tr ":" "\n"
. For manipulating it in scripts see (on Stack Overflow) stackoverflow.com/questions/273909/…