Use sed rather than tr

This commit is contained in:
Reid 'arrdem' McKenzie 2018-04-29 18:25:18 -07:00
parent 44c016e549
commit 9d277e5aec

View file

@ -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 {