I have a shell script that runs a command:
#!/bin/bash
r my custom command
Now I have a folder on my computer ~/myuser/tools/r/my.sh
But when I run the file it gives me "r: command not found" which is on that line I provided above.
However, when I just enter r my custom command
into the terminal, it does run. It just doesn't run from the shell script.
alias r="/myuser/tools/r/my.sh"
I've also confirmed I am running in bash mode and not Zsh
I'm running macos Big Sur on a silicon M1 MBP.