Browse Source

wd: point to the correct directory even if installed with antibody (#8116)

Salomon Smeke 5 years ago
parent
commit
15dd77055e
1 changed files with 1 additions and 5 deletions
  1. 1 5
      plugins/wd/wd.plugin.zsh

+ 1 - 5
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' }"