BOOKMARKing:remove absolute path of sed, to make compatible with OS X
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user