qcd means quick cd (quick change directory).
It is a small zsh bookmark manager for directories.
█████
░░███
████████ ██████ ███████
███░░███ ███░░███ ███░░███
░███ ░███ ░███ ░░░ ░███ ░███
░███ ░███ ░███ ███░███ ░███
░░███████ ░░██████ ░░████████
░░░░░███ ░░░░░░ ░░░░░░░░
░███
█████
░░░░░
qcd add: add a directory bookmarkqcd add . [alias]: bookmark the current directory, optionally naming it inlineqcd <alias>: jump to a saved directoryqcd list: list all bookmarks in aligned columnsqcd rename <oldalias> <newalias>: rename an existing aliasqcd remove <alias>: remove a bookmarkqcd help: show usage- Persistent storage in
~/.qcd_bookmarks.zsh
zsh- macOS/Linux shell environment
Both install paths use install.zsh, which safely updates ~/.zshrc (newline-safe, no duplicate source line) and loads qcd immediately.
brew tap adamzafir/qcd https://github.com/adamzafir/qcd
brew install qcd
source "$(brew --prefix)/share/qcd/install.zsh"git clone https://github.com/adamzafir/qcd.git ~/.qcd
source ~/.qcd/install.zshqcd add
# add the path: ~/Desktop/Programming
# add the alias: progqcd add .
# add the alias: hereqcd add . hereqcd progqcd listqcd remove progqcd rename prog workqcd help- Alias format is validated as:
[A-Za-z0-9._-]+ - Relative paths and
~are expanded to absolute paths - If an alias already exists,
qcd addoverwrites it - Legacy malformed aliases (from older buggy versions) are normalized automatically when loaded
By default bookmarks are stored in:
~/.qcd_bookmarks.zsh
You can override this location:
export QCD_STORE="$HOME/.my_qcd_bookmarks.zsh"- Remove the source line from
~/.zshrc - Delete the repo folder
- Optionally remove
~/.qcd_bookmarks.zsh
MIT