0

This question already has an answer here:

i have a pyton script that execute with python script.py when you are in the same folder.

I want to know if it's possible to make a bash alias like alias script='command' to execute the script also when you are outside the same folder than the script?

thx

marked as duplicate by l0b0, Jeff Schaller, Isaac, Kiwy, Archemar Apr 11 '18 at 7:50

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

I find it by myself you just have to make an alias like this :

alias script="python /home/name/folder/script.py"

and that's all.

Not the answer you're looking for? Browse other questions tagged or ask your own question.