Skip to main content
fixed formating according to convention
Source Link
Archemar
  • 32.3k
  • 18
  • 75
  • 107

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

  1. jump to the home dir of an existing project just cd to its code.
  2. just cd in a project subdir brings me to the project home dir, not my home.
  3. cd to a project inexistent (project name have nomenclature): suggest to create the environement of the project.
  4. cd to a project that hapen to be archived : ask to revive it or just move to archive.

otherwise works like cdcd.

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 that does the actual cd.
To prevent recusive calls an actual cd in the script is written \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 works like cd.

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 that does the actual cd.
To prevent recusive calls an actual cd in the script is written \cd this means "uses legacy cd not the alias".

By functionalized i mean

  1. jump to the home dir of an existing project just cd to its code.
  2. just cd in a project subdir brings me to the project home dir, not my home.
  3. cd to a project inexistent (project name have nomenclature): suggest to create the environement of the project.
  4. cd to a project that hapen to be archived : ask to revive it or just move to archive.

otherwise works like cd.

Source Link

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 that does the actual cd.
To prevent recusive calls an actual cd in the script is written \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 works like cd.