diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-05-03 19:50:51 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-05-03 19:50:51 +0200 |
commit | 2b73fed143ba14c7a759da12713ed3c69ffc83a3 (patch) | |
tree | b8e79762a6d80ed0e7f5f0157857dae2b6b4a92e /config/essentials/zsh | |
parent | f3cde5e74f7945e2c902bd1b1369db62a187f039 (diff) | |
parent | 317187fb037ea8db67d19890e7e9c53fc9a7622a (diff) |
Merge branch 'main' of gdb:dotfiles
Diffstat (limited to 'config/essentials/zsh')
-rw-r--r-- | config/essentials/zsh/functions.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/essentials/zsh/functions.zsh b/config/essentials/zsh/functions.zsh index da6df04..c260891 100644 --- a/config/essentials/zsh/functions.zsh +++ b/config/essentials/zsh/functions.zsh @@ -15,11 +15,11 @@ vimh() { } nvf() { local cache="$HOME/.cache/nvf" - local match="$(grep -m1 "$1" "$cache" 2> /dev/null)" + local match="$(grep -m1 "$1$" "$cache" 2> /dev/null)" if test ! -f "$match" then die "resetting cache..." - match="$(goo | tee "$cache" | grep -m 1 "$1" 2> /dev/null)" + match="$(goo | tee "$cache" | grep -m 1 "$1$" 2> /dev/null)" # # Alternative: # match="$(goo | grep -m 1 "$1" 2> /dev/null | tee -a | "$cache")" fi |