From: Yakkala Yagnesh Raghava Date: Fri, 5 Aug 2011 16:01:17 +0000 (+0900) Subject: BOOKMARKing:remove absolute path of sed, to make compatible with OS X X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=dcdfd66d2a566dc637f916486e5622b651cc095f;p=common%2Fbash_it.git BOOKMARKing:remove absolute path of sed, to make compatible with OS X --- diff --git a/plugins/available/dirs.plugins.bash b/plugins/available/dirs.plugins.bash index a9f5974..9353c5b 100755 --- a/plugins/available/dirs.plugins.bash +++ b/plugins/available/dirs.plugins.bash @@ -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; }