As normal unix users, we frequently use the mundane sudo apt-get install, sudo apt-get upgrade, sudo apt-get remove etc. commands. As busy developers, we often need to initialize, commit git repos. Why don't we abbreviate these commands?
We can easily alias these commands in our bash_rc file and save our precious time for an extra movie for the day :)
In Ubuntu, add your alias to the ~/.bash_aliases file in the below format:
alias abbreviation="Command"
Example: alias sagi = "sudo apt-get install"
Now, I just need to type in $ sagi terminator to install terminator :)
If your OS flavor is not Ubuntu, just make the changes in ~/.bashrc and enjoy your extra hours for a good nap or movie.
No comments:
Post a Comment