Because I functionalized a lot my cd, i did this :
added this line in ~/.bashrc
alias cd='. my_cd' and my_cd is a script in my $PATH$PATH that does the actual cdcd.
To prevent recusive calls an actual cdcd in the script is written \cd\cd this means "uses legacy cd not the alias".
By functionalized i mean
a/ jump to the home dir of an existing project just cd to its code.
b/ just cd in a project subdir brings me to the project home dir, not my home.
c/ cd to a project inexistent (project name have nomenclature): suggest to create the environement of the project.
d/ cd to a project that hapen to be archived : ask to revive it or just move to archive.
otherwise
- jump to the home dir of an existing project just cd to its code.
- just
cdin a project subdir brings me to the project home dir, not my home. cdto a project inexistent (project name have nomenclature): suggest to create the environement of the project.cdto a project that hapen to be archived : ask to revive it or just move to archive.
otherwise works like cdcd.