I’m a newbie to Linux operating system
I need to do the following:-
I have multiple projects under “~/myprojects”
Think of like >ls ~/myprojects
project1 project2i newproject project_possible….
All my projects have a fixed structure see as below:-
ls ~/myprojects/
src lib inc common test_scripts
(all these are directories having some files in them
For navigating the current()
I want to do something like this in my bashrc file.
assign curr_project = “$1”
alias psrc=’cd ~/myprojects/curr_project/src/’
alias plib=’cd ~/myprojects/curr_project/lib/’
Thanks in advance
You can use an environment variable to specify the current project and use the variable in your aliases:
First you set the
CURR_PROJECTby usingThen you call your alias to change directories:
Hope that helps.