https://github.com/ryutok/zbd
Quickly go back to the specific parent directory instead of typing cd ../../...
https://github.com/ryutok/zbd
bd zplug zsh zsh-plugin
Last synced: 27 days ago
JSON representation
Quickly go back to the specific parent directory instead of typing cd ../../...
- Host: GitHub
- URL: https://github.com/ryutok/zbd
- Owner: ryutok
- License: mit
- Created: 2018-05-11T13:20:09.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-12T08:31:40.000Z (over 7 years ago)
- Last Synced: 2025-06-20T18:16:18.734Z (11 months ago)
- Topics: bd, zplug, zsh, zsh-plugin
- Language: Shell
- Homepage:
- Size: 34.2 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zbd
[](https://travis-ci.org/ryutok/zbd)
[](LICENSE)
Quickly go back to the specific parent directory instead of typing `cd ../../..`.
## Demo

## zbd vs. [Tarrasch/zsh-bd](https://github.com/Tarrasch/zsh-bd)
### Ignore current directory
Current working directory is not included in the parent directory list.
For example, when you are in `~/aaa/bbb/aaa`, command `zbd aaa` means `cd ~/aaa` not `cd ~/aaa/bbb/aaa`.
### Easily move up 1 directory
Command `zbd` without argument corresponds `zbd 1` and `cd ../`.
### Support new completion system (`zstyle`)
You can change TAB completion performance using `zstyle` command.
For example, when you want to ignore case, add the following lines in your `.zshrc`.
```
autoload -Uz compinit
compinit
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
```
## Usage
zbd [directory name | number]
### Options
-h -- print help
## Installation
### Manually
Put `zbd` and `_zbd` files somewhere you want to install, and add the following lines in your `.zshrc`.
```
export fpath=( $fpath )
autoload -Uz zbd
```
### Using zplug
If you use [zplug](https://github.com/zplug/zplug), add the following line to your `.zshrc`.
```
zplug 'ryutok/zbd'
```
## License
[MIT](https://github.com/ryutok/zbd/blob/master/LICENSE)
## Author
[ryutok](https://github.com/ryutok)