title: Automatically create bash alias when cloning git repository
body: <p>I have written a piece of software MySoftware in Python that I am going to publish on GitHub and I expect some people to want to download (clone the repository) and use it. To use this software the user has to type the command <code>python ~/programs/MySoftware/src/main.py</code> or whatever the path to the <code>main.py</code> might be, which will depend on where he decides to put the Git repository. </p>
  
  <p>I made an alias for this, <code>mysoftware='python ~/programs/MySoftware/src/main.py'</code>, so that when I want to use the program myself, I can just type the command <code>mysoftware</code>. I will recommend the users of my software to do the same, and most will of course do it anyway if they use the software regularly, but it would be even better if I could have this alias be created automatically on "installation", which is esentially just the process of cloning the repository.</p>
  
  <p>When you f.ex. install something like <code>apt-get install google-chrome</code> the <code>google-chrome</code> alias is made automatically. That is the behaviour I want. Where are all the aliases of all our installed programs used?</p>
  
  <p>I think I could make a <code>setup.py</code> or something that I would tell the user to run once in the manual and/or readme and that script could write the alias to the .bashrc. Is that a way to go? I don't really think that's what programs are doing, because I know there are no aliases in my .bashrc or .bash_aliases that I have not made myself, and it doesn't feel right to make a script that tries to write in other people's .bashrc.</p>