2
Let's say I have a script called bob
. It might be in two locations: /usr/local/bin/bob
or /usr/local/bin/scripts/bob
. Is there a way I can alias bob
to both locations and it will stop whenever it finds bob
? So if bob
is in /usr/local/bin/bob
, it will stop there, otherwise it will look in /usr/local/bin/scripts/bob
?
1+1: Exactly what I came in here to say. Bin directories are a good place to store commands anyway; rather than putting your script directory in the path, you might want to put links to your script commands in the bin directory...But that's a personal preference. – Satanicpuppy – 2009-11-09T15:38:11.530