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

Zsh Bd

Jump back to a specific directory, without doing `cd ../../..`

Tarrasch
|
394 stars
112 forks

Quickly go back to a specific parent directory instead of typing cd ../../.. redundantly.


This is a reimplementation of vigneshwaranr/bd that utilizes the power of the zsh shell.

Usage

$ mkdir -p a/b/c/d
$ cd a/b/c/d
$ bd b
$ ls
c
$ cd c/d
$ bd 2
$ ls
c

Here's an animation also showing the completion functionality

Animated gif

Thanks

Thanks to @vigneshwaranr for inspiring me to do a zsh version.

Thanks to @voria for many useful patches! (see commit log)