From 9d277e5aec757097045794d7ec4e3f256e574246 Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Sun, 29 Apr 2018 18:25:18 -0700 Subject: [PATCH] Use sed rather than tr --- goto.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goto.plugin.zsh b/goto.plugin.zsh index 823ed36..939fc95 100644 --- a/goto.plugin.zsh +++ b/goto.plugin.zsh @@ -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 {