Monday, March 9, 2015

Organizing aliases on Linux

Just because I wanted to share and track the aliases I use on my linux box across multiple boxes, including VMs, I decided to put the .aliases file on github.

However, my .aliases was littered with tidbits and shortcuts that I use specifically for work which wont be relevant across my other machines. To remedy this problem I decide to do the following:

  1. Split my original .aliases file into two files: work_aliases and generic_aliases.
  2. From my .bashrc I now invoke two separate aliases as
source ~/generic_aliases
source~/work_aliases 

Now I can conevniently manage and track the aliases and shortcuts. I have shared my collection of useful shortcuts here:
https://github.com/techmuser/softlockup_repo/blob/master/scripts/generic_aliases

As always:
Complete source can be downloaded here
Complete repo of free source code can be downloaded here 

0 comments:

Post a Comment