# cdp: Change Directory Pro How do you navigate in your terminal? Do you chain sequences of `cd` commands together, or copy a file path and paste it? Sometimes to a destination directory that's not adjacent to your current one? `cdp` might be the solution for you. It's a command that activates an interactive way to navigate directories smoothly and easily. Compatible with bash and zsh. ## Controls - `cdp` to activate - ↑/↓ to change the selected subdirectory - ← to move into the parent subdirectory (disallowed when in $HOME) - → to make the selected subdirectory the active one (i.e. `cd` into it) - ↵ (return) to exit navigation in the new active directory - Ctrl+C to cancel navigation, staying in the initial directory - Any characters (except backslash) to search for a specific substring ## Installation Download `cdp.sh` and place it wherever you want. You can source this file in your `.{zsh|bash}rc`, or you can directly copy the contents in. The following commands can help with that (replace `.zshrc` with `.bashrc` as appropriate): ```zsh # source file from .zshrc echo "source " >> ~/.zshrc # copy into .zshrc tail -n +3 >> ~/.zshrc ```