Skip to content
/ zsh-bd Public
forked from Tarrasch/zsh-bd

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

Notifications You must be signed in to change notification settings

murph0/zsh-bd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

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

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 56.7%
  • Perl 38.5%
  • Makefile 4.8%