Browse Source

[wd] Update wd plugin to latest (#6383)

* Update wd plugin to v0.4.5

* [wd] Update wd plugin to v0.4.6
Markus Færevaag 6 years ago
parent
commit
46062e25cc
2 changed files with 4 additions and 4 deletions
  1. 3 3
      plugins/wd/_wd.sh
  2. 1 1
      plugins/wd/wd.sh

+ 3 - 3
plugins/wd/_wd.sh

@@ -21,12 +21,12 @@ function _wd() {
   do
     arr=(${(s,:,)line})
     name=${arr[1]}
-    path=${arr[2]}
+    target_path=${arr[2]}
 
     # replace ~ from path to fix completion (#17)
-    path=${path/#\~/$HOME}
+    target_path=${path/#\~/$HOME}
 
-    points[$name]=$path
+    points[$name]=$target_path
   done < $CONFIG
 
   commands=(

+ 1 - 1
plugins/wd/wd.sh

@@ -8,7 +8,7 @@
 # @github.com/mfaerevaag/wd
 
 # version
-readonly WD_VERSION=0.4.4
+readonly WD_VERSION=0.4.6
 
 # colors
 readonly WD_BLUE="\033[96m"