Browse Source

[wd] Fix update of wd plugin to v0.4.6 (#6407)

Markus Færevaag 7 years ago
parent
commit
dcb8101fde
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/wd/_wd.sh

+ 1 - 1
plugins/wd/_wd.sh

@@ -24,7 +24,7 @@ function _wd() {
     target_path=${arr[2]}
 
     # replace ~ from path to fix completion (#17)
-    target_path=${path/#\~/$HOME}
+    target_path=${target_path/#\~/$HOME}
 
     points[$name]=$target_path
   done < $CONFIG