Is anyone automatically running a bash script upon changing directories? Easy enough to implement, but is there any standard for it? #bash #linux
Use the "hash" command to update command locations after futzing with paths #linux
TIL:
"When not performing substring expansion, using the form described below (e.g., ‘:-’), Bash tests for a parameter that is unset or null. Omitting the colon results in a test only for a parameter that is unset. Put another way, if the colon is included, the operator tests for both parameter’s existence and that its value is not null"
And I also remembered why I generally try to avoid shell programming.