Skip to content

S1monG/improved_cd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Improved cd to be used in terminal. See zoxide for a similar build.

It will by default search all the way down and if there are multiple folders with that name it will let you chose for example if you search for a directory 'japan' :
[1] path/japan
[2] otherpath/japan
[3] lastpath/japan

You may add a flag to control the max depth it will search, for example 'cdd afolder --max-depth 2'.
In the case where there are more than one directory with the name you are searching for you
can add a flag to always choose the closest, for example 'cdd afolder -c'.
You can also add a flag to tell it to search from the root, for example 'cdd afolder -r'.

You need to add a script in your $PROFILE file. This may look different depending on what terminal
you are using. This is an example of how it may look in PowerShell
Alt text

About

cd but you can go to any directory without writing the full path

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages