how to make a bash alias to a script in folder [duplicate]
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
This question already has an answer here:
In Bash, when to alias, when to script, and when to write a function?
14 answers
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
bash shell-script python
marked as duplicate by l0b0, Jeff Schaller, Isaac, Kiwy, Archemar Apr 11 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.
add a comment |Â
up vote
0
down vote
favorite
This question already has an answer here:
In Bash, when to alias, when to script, and when to write a function?
14 answers
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
bash shell-script python
marked as duplicate by l0b0, Jeff Schaller, Isaac, Kiwy, Archemar Apr 11 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.
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
This question already has an answer here:
In Bash, when to alias, when to script, and when to write a function?
14 answers
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
bash shell-script python
This question already has an answer here:
In Bash, when to alias, when to script, and when to write a function?
14 answers
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
This question already has an answer here:
In Bash, when to alias, when to script, and when to write a function?
14 answers
bash shell-script python
asked Apr 10 at 17:09
Gy0m
814
814
marked as duplicate by l0b0, Jeff Schaller, Isaac, Kiwy, Archemar Apr 11 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.
marked as duplicate by l0b0, Jeff Schaller, Isaac, Kiwy, Archemar Apr 11 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.
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
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.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
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.
add a comment |Â
up vote
0
down vote
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.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
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.
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.
edited Apr 10 at 18:49
Tomasz
8,04052560
8,04052560
answered Apr 10 at 17:22
Gy0m
814
814
add a comment |Â
add a comment |Â