Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Tarrasch/zsh-bd
Jump back to a specific directory, without doing `cd ../../..`
https://github.com/Tarrasch/zsh-bd
Last synced: about 2 months ago
JSON representation
Jump back to a specific directory, without doing `cd ../../..`
- Host: GitHub
- URL: https://github.com/Tarrasch/zsh-bd
- Owner: Tarrasch
- Created: 2013-09-02T21:42:33.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2022-06-17T21:59:03.000Z (almost 2 years ago)
- Last Synced: 2024-01-23T16:09:35.405Z (4 months ago)
- Language: Shell
- Homepage:
- Size: 200 KB
- Stars: 407
- Watchers: 6
- Forks: 112
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Lists
- awesome-zsh-plugins - bd - Jump back to a specific directory, without doing `cd ../../..`. (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - bd - Jump back to a specific directory, without doing `cd ../../..`. (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - bd - Jump back to a specific directory, without doing `cd ../../..`. (Plugins / ZSH on Windows)
- awesome-zsh-plugins - bd - Jump back to a specific directory, without doing `cd ../../..`. (Plugins / ZSH on Windows)
- awesome-stars - Tarrasch/zsh-bd - Jump back to a specific directory, without doing `cd ../../..` (Shell)
- awesome-zsh-plugins - bd - Jump back to a specific directory, without doing `cd ../../..`. (Plugins / Zinit (née zplugin))
README
[![Build Status](https://travis-ci.org/Tarrasch/zsh-bd.png)](https://travis-ci.org/Tarrasch/zsh-bd)
# 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](https://github.com/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/.zshrcRestart your shell (or run `zsh`)
### [Antigen](https://github.com/zsh-users/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
cHere's an animation also showing the completion functionality
![Animated gif](animation.gif "Animation that shows auto completion")
## Thanks
Thanks to
[@vigneshwaranr](https://github.com/vigneshwaranr)
for inspiring me to do a zsh version.Thanks to [@voria](https://github.com/voria) for many useful
patches! (see commit log)