Skip to content

ZSH function to change to child directory using FZF

License

Notifications You must be signed in to change notification settings

kjhaber/cdfzf.zsh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cdfzf.zsh

ZSH function to change to child directory using FZF.

Usage

cdfzf <root-dir> <levels>

For example, I aliased cdprojects to cdfzf $PROJECTS_DIR 2. This alias makes it easy to jump straight to the root, child, or grandchild directories of my projects folder with fuzzy searching with FZF. (The fzf completion list will include empty string to allow selecting no child directory.)

Installation

First, if you do not use fzf, this plugin will not be useful.

Next, source tm.zsh in your zsh file.

Personally I use Antibody to load zsh plugins. Add kjhaber/cdfzf.zsh to your plugin list, then reload zsh.

About

ZSH function to change to child directory using FZF

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages