Skip to content

hmorgado/add-alias

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Add Alias

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.

Run it:

$ python3.5 addalias.py gs 'git status'
Added new alias: alias gs='git status'

Compile:

$ 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'

Remember to source your ~/.bashrc file afterwards.

$ source ~/.bashrc

About

Add bash aliases with a single command

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages