Use sed rather than tr
This commit is contained in:
parent
44c016e549
commit
9d277e5aec
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ function _goto_file {
|
|||
};
|
||||
|
||||
function _make_label {
|
||||
printf '%s %s\n' "$1" $(echo "$2" | tr -d "$HOME/") >> `_goto_file`
|
||||
printf '%s %s\n' "$1" $(echo "$2" | sed "s^$HOME^^g") >> `_goto_file`
|
||||
};
|
||||
|
||||
function label {
|
||||
|
|
Loading…
Reference in a new issue