Discover, install, and configure shell plugins with Fig Plugin Store →
😎

Zsh Favorite Directories

zsh plugin for cd to list of favorite directories lightning fast

seletskiy
|
8 stars
3 forks

zsh favorite directories

favorites

Installation

zgen

zgen load seletskiy/zsh-favorite-directories

Usage

Defining keybinding

bindkey -v '^_' "favorite-directories:cd"

Defining favorite directories

In .zshrc

favorite-directories:get() {
    echo <name> <depth> <path>
    ...
}

Like:

favorite-directories:get() {
    echo sources 1 ~/sources
    echo zsh 2 ~/.zsh/.zgen
    echo vim 2 ~/.vim
}

Defining custom actions after directory change

In .zshrc

favorite-directories:on-cd() {
    prompt_lambda17_precmd

    zle reset-prompt
}