diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-05-03 14:51:14 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-05-03 14:51:14 +0200 |
commit | a5f0663ce4b46afba69288b57f9b94b4b11012f4 (patch) | |
tree | f3aba51508c9600688a536f0158c17cbeac81494 /config/essentials | |
parent | 1473763c21ca94550ea5213295c5713f3ca049ab (diff) |
added exact file match on nvf
Diffstat (limited to 'config/essentials')
-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 |