BOOKMARKing:remove absolute path of sed, to make compatible with OS X
authorYakkala Yagnesh Raghava <yagnesh@live.com>
Fri, 5 Aug 2011 16:01:17 +0000 (01:01 +0900)
committerYakkala Yagnesh Raghava <yagnesh@live.com>
Fri, 5 Aug 2011 16:01:17 +0000 (01:01 +0900)
plugins/available/dirs.plugins.bash

index a9f5974..9353c5b 100755 (executable)
@@ -68,14 +68,14 @@ G () {                              # goes to distination dir otherwise , stay in the dir
 }
 
 S () {                         # SAVE a BOOKMARK
-    /bin/sed "/$@/d" ~/.dirs > ~/.dirs1;
+    sed "/$@/d" ~/.dirs > ~/.dirs1;
     \mv ~/.dirs1 ~/.dirs;
     echo "$@"=\"`pwd`\" >> ~/.dirs;
     source ~/.dirs ;
 }
 
 R () {                         # remove a BOOKMARK
-    /bin/sed "/$@/d" ~/.dirs > ~/.dirs1;
+    sed "/$@/d" ~/.dirs > ~/.dirs1;
     \mv ~/.dirs1 ~/.dirs;
 }