15dd77055e2b4a931d50ad3e05f823893aac66af
- Author
- Salomon Smeke <SalomonSmeke@users.noreply.github.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
wd: point to the correct directory even if installed with antibody (#8116)
Diff
1diff --git a/plugins/wd/wd.plugin.zsh b/plugins/wd/wd.plugin.zsh
2index c0559293d1184e956a6da01691d98b10c88c063d..4b7cd3c19d4b470c8f7903921ea2550272f0d0a8 100644
3--- a/plugins/wd/wd.plugin.zsh
4+++ b/plugins/wd/wd.plugin.zsh
5@@ -1,11 +1,7 @@
6-#!/bin/zsh
7-
8 # WARP DIRECTORY
9 # ==============
10 # oh-my-zsh plugin
11 #
12 # @github.com/mfaerevaag/wd
13
14-wd() {
15- . $ZSH/plugins/wd/wd.sh
16-}
17+eval "wd() { source '${0:A:h}/wd.sh' }"