# cdp: Change Directory Pro ![recording](https://user-images.githubusercontent.com/27376487/188341254-75583362-0614-4475-a6dd-309b2592d1ea.gif) 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. ## 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 - ⎵ (space) to make $HOME the active directory - [0-9] to make active the subdirectory is listed next to that number - Ctrl+C to cancel navigation, staying in the initial directory ## Installation Just copy the code below into your .zshrc! (Alternatively, place it in a different file and source that file in .zshrc to keep those files from getting bloated.) Not yet tested for Bash or PowerShell. ###### Based on https://unix.stackexchange.com/questions/146570/arrow-key-enter-menu