Skip to content

Instantly share code, notes, and snippets.

View jacksluong's full-sized avatar

Jacky Luong jacksluong

View GitHub Profile
@jacksluong
jacksluong / cdp.md
Last active September 4, 2024 07:18
An interactive way to navigate directories in a terminal

cdp: Change Directory Pro

recording 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)