Skip to content

zsh plugin for cd to list of favorite directories lightning fast

Notifications You must be signed in to change notification settings

seletskiy/zsh-favorite-directories

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

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
}

About

zsh plugin for cd to list of favorite directories lightning fast

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages