Quick and robust aliasing for command line.
Clone this repository and run make
.
Navigate to either ~/.bash_profile
or ~/.bashrc
.
Paste in the following code:
if [ -f ~/.bash_easyaliases ]; then
. ~/.bash_easyaliases
fi
Finally, run source ~/.bashrc
or source ~/.bash_profile
.
You're all set.
-
Learn: assign current working directory an alias.
learn <alias>
l <alias>
-
Forget: drop matching alias.
forget <alias>
f <alias>
-
Enter: navigate to directory stored as alias.
enter <alias>
goto <alias>
switch <alias>
e <alias>
gt <alias>
sw <alias>
-
Show: list all aliases currently in use.
show