I have written a very simple command line utility for myself. The setup consists of:
- One .py file containing the application / source.
- One executable shell (chmod + x) script that runs python script.
- A line in my .bash_profile that pseudonizes my command as follows:
alias cmd='. shellscript'(This way it works in the same terminal context.)
So I can type cmdto run it, and everything works fine.
My question is, how can I spread this to others? Obviously, I could just write these instructions with my code and do with it, but is there a faster way? I sometimes saw these single-line liners that you insert into the console to install something. How should I do it? I seem to recall them involving curland piping up sh, but I can't remember.
source
share