summaryrefslogtreecommitdiff
path: root/plugins/wd
diff options
context:
space:
mode:
authorSalomon Smeke <SalomonSmeke@users.noreply.github.com>2019-09-02 06:40:39 -0500
committerMarc Cornellà <marc.cornella@live.com>2019-09-02 13:40:39 +0200
commit15dd77055e2b4a931d50ad3e05f823893aac66af (patch)
tree21cf668f85a0b75175a5f77344b82daf0f7c669f /plugins/wd
parenta331063a04fff829805e3731b2ef75835d4243b0 (diff)
downloadzsh-15dd77055e2b4a931d50ad3e05f823893aac66af.tar.gz
zsh-15dd77055e2b4a931d50ad3e05f823893aac66af.tar.bz2
zsh-15dd77055e2b4a931d50ad3e05f823893aac66af.zip
wd: point to the correct directory even if installed with antibody (#8116)
Diffstat (limited to 'plugins/wd')
-rw-r--r--plugins/wd/wd.plugin.zsh6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/wd/wd.plugin.zsh b/plugins/wd/wd.plugin.zsh
index c0559293d..4b7cd3c19 100644
--- a/plugins/wd/wd.plugin.zsh
+++ b/plugins/wd/wd.plugin.zsh
@@ -1,11 +1,7 @@
-#!/bin/zsh
-
# WARP DIRECTORY
# ==============
# oh-my-zsh plugin
#
# @github.com/mfaerevaag/wd
-wd() {
- . $ZSH/plugins/wd/wd.sh
-}
+eval "wd() { source '${0:A:h}/wd.sh' }"