Add external module bd.
This commit is contained in:
parent
9539341e1e
commit
a9cd696443
4 changed files with 24 additions and 0 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -16,3 +16,6 @@
|
|||
[submodule "modules/prompt/functions/pure"]
|
||||
path = modules/prompt/external/pure
|
||||
url = https://github.com/sindresorhus/pure.git
|
||||
[submodule "modules/bd/external"]
|
||||
path = modules/bd/external
|
||||
url = https://github.com/Tarrasch/zsh-bd.git
|
||||
|
|
18
modules/bd/Readme.md
Normal file
18
modules/bd/Readme.md
Normal file
|
@ -0,0 +1,18 @@
|
|||
# bd
|
||||
Jump back to a specific directory, without doing `cd ../../..`
|
||||
|
||||
This is simply [bd](https://github.com/Tarrasch/zsh-bd) ported to a prezto module.
|
||||
|
||||
For further information, e.g. a usage animation, I refer to the [original repository](https://github.com/Tarrasch/zsh-bd).
|
||||
|
||||
## Usage
|
||||
```zsh
|
||||
$ mkdir -p a/b/c/d
|
||||
$ cd a/b/c/d
|
||||
$ bd b
|
||||
$ ls
|
||||
c
|
||||
```
|
||||
|
||||
## Acknowledgements
|
||||
All credits go to [@Tarrasch](https://github.com/Tarrasch) for the zsh implementation of bd!
|
1
modules/bd/external
Submodule
1
modules/bd/external
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 73670e1f23dd7e094cfd3083425ee2cd6b938e07
|
2
modules/bd/init.zsh
Normal file
2
modules/bd/init.zsh
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Source module files.
|
||||
source "${0:h}/external/bd.zsh" || return 1
|
Loading…
Add table
Reference in a new issue