Bash script - Using alias
Recently, whenever I open my computer's terminal, I always have to change directory to my projects folder. So, to avoid repeating that action, I add an alias to my Xubuntu's bash an alias:
~/.bash_aliases:
alias projects='cd /var/projects/'
Restart, and then I can only need to type 'projects' to change my current directory to the project base.
For more information:
[0] http://www.ibm.com/developerworks/aix/library/au-getstartedbash/
[1] http://www.tldp.org/LDP/abs/abs-guide.pdf
Comments
Post a Comment