ratorx / zsh-bd

Fork of zsh-bd with changes requested by https://github.com/Tarrasch/zsh-bd/issues/18

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

zsh-bd

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

Update August 2017: While there have not been commits lately, it's still fully functional.


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

Install

All you need to do is to source bd.zsh. Here's the manual installation

mkdir -p $HOME/.zsh/plugins/bd
curl https://raw.githubusercontent.com/Tarrasch/zsh-bd/master/bd.zsh > $HOME/.zsh/plugins/bd/bd.zsh
print -- "\n# zsh-bd\n. \$HOME/.zsh/plugins/bd/bd.zsh" >> $HOME/.zshrc

Restart your shell (or run zsh)

Antigen

If you prefer antigen over manual installation

antigen-bundle Tarrasch/zsh-bd

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)

About

Fork of zsh-bd with changes requested by https://github.com/Tarrasch/zsh-bd/issues/18


Languages

Language:Shell 55.3%Language:Perl 39.7%Language:Makefile 5.0%