Every time I install a new program must I add it’s subdirectory to PATH? or does this statement cover all subdirectories?:PATH=$PATH:~/local/bin in my .bashrc
If I must add every subdirectory to PATH is there an automated solution that I can place in .bashrc? So that on startup it checks all subdirectories against PATH, if FALSE update?
If it’s indeed the case that you have directories under
$HOME/local/binlikeand you’d like each of these to be in your
$PATHthen you can do the following in your.bashrcor probably your.bash_loginas you wouldn’t want this done every time you start a bash session from an existing one.If that’s not the case then perhaps you could be a bit more specific in whats not happening for you as usually exes are usually installed in
<somewhere>/binand even if they’re not for versioning reasons they’ll usually be linked there.