]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/wd/wd.plugin.zsh
initial
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / wd / wd.plugin.zsh
1 #!/bin/zsh
2
3 # WARP DIRECTORY
4 # ==============
5 # Jump to custom directories in terminal
6 # because `cd` takes too long...
7 #
8 # @github.com/mfaerevaag/wd
9
10 # Handle $0 according to the standard:
11 # https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html
12 0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
13 0="${${(M)0:#/*}:-$PWD/$0}"
14
15 eval "wd() { source '${0:A:h}/wd.sh' }"