This script add aliases to your ~/.bashrc
file like this:
$ dist/addalias gs 'git status'
Added new alias: alias gs='git status'
You can either run it as a script or compile it into a one-file.
$ python3.5 addalias.py gs 'git status'
Added new alias: alias gs='git status'
$ virtualenv --python=$(which python3.5) .env
$ . .env/bin/activate
$ pip install -r requirements.txt
$ .env/bin/pyinstaller --onefile addalias.py
# a binary file will be created in the dist/ folder
$ dist/addalias gs 'git status'
Added new alias: alias gs='git status'
$ source ~/.bashrc