BOOKMARKing:remove absolute path of sed, to make compatible with OS X

This commit is contained in:
Yakkala Yagnesh Raghava
2011-08-06 01:01:17 +09:00
parent c6e096e35d
commit dcdfd66d2a

View File

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