I have gone through the following steps.
- Made the file executable,
- Tested that the file could be run with
./script1.py
, - Added the file's directory to the system
$PATH
.
However, at this point, am I supposed to be able to say script1 arg1
and be able to run it like a built-in bash command or do I still need to set up an alias.
My quick hack is to set up an alias; however, I am not sure if this is redundant.
alias script1 = $HOME/dir/script1.py