I have a collection of bash scripts that I have added to the PATH
so that I can execute them from anywhere.
export PATH=$PATH:~/<path>/<to>/<scripts>
so along with
./<path>/<to>/<scripts>/mt-sync-github-projects
I can use
mt-sync-github-projects
This all works as expected from bash but not from within fish-shell. I have to call bash and pass the script path as an argument, and any other arguments while executing:
bash ./<path>/<to>/<scripts>/mt-sync-github-projects <other-arguments-if-at-all>
I have verified that even though I did not add the location to fish's PATH
explicitly, it does show me the right value for PATH
using echo $PATH
and the scripts have a shebang specifying that they are to be executed as a bash script:
#!/usr/bin/env bash
Am I missing something or doing it entirely the wrong way?
fish
shell would useset -x PATH $PATH ~/<path>/<to>/<scripts>
, notexport
(it's not really a POSIX shell). But it's not clear where you do thatexport
thing to add to thePATH
.export PATH=...
line? Is that something you typed into the console or is it in a config file? If so, which config file?export
is here