cdd
cdd copied to clipboard
A wrapper around cd and xdg-open to use aliases as directory paths in terminal
CDD - Change directories Dynamically
I am lazy and turns out that basic tab completion wasn't enough for me to navigate through my directories using cd
Hence I made cdd. This tool helps me create aliases to location which I can jump to at anytime from anywhere.
There is also a cdo command that has the same fuctionality like cdd but will open the required path in the file manager rather than in the terminal.
And the best part is that cdd also has the basic functionality of cd.
Installation steps
- Clone the repo. Open a terminal at the cloned path.
- If you use zsh do
cd dist/mac-zshor on bashcd dist/bash-linux . ./install.sh
How to use
You can use the -h to get info about the commands that you have, but here's the gist of it
# Add an alias
cdd add <alias_name> <target/relative_destination> [flags]
# Delete an alias
cdd delete <alias_name> [flags]
# List all aliases
cdd -l
Note
-
In the help section of the cli you might see help text for some commands with
gcddrather thancddfor now. This is because the main script is a wrapper around a CLI made in golang using cobra. That CLI uses thegcddcommand as it's root command -
The
cdoworks well on mac, but for linux, it only works on gnome.
Suggestions, criticisms, comments and contributions of any type are always welcome