I can find quite a bit of information on how to add a location to my $PATH, but I can’t seem to find anything on how to remove one.
Last week I added ~/.local/bin to my $PATH. I now would like to change that to ~/.local/scripts. I thought I would just delete the ~/.local/bin and then add the ~/.loacal/scripts but I can’t figure out how to delete the bin directory from the $PATH environment.
Why would you want to run $PATH? It’s trying to run a file that way. But there’s obviously no file at that path. To look at the current value of $PATH, run echo $PATH.