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

pull/75/head
Yakkala Yagnesh Raghava 2011-08-06 01:01:17 +09:00
parent c6e096e35d
commit dcdfd66d2a
1 changed files with 2 additions and 2 deletions

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;
} }