BOOKMARKing:remove absolute path of sed, to make compatible with OS X
parent
c6e096e35d
commit
dcdfd66d2a
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue