From ff79baa67f2b86a7c28249b5c1baafc251dff1b7 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Mon, 21 Apr 2025 13:15:05 -0400 Subject: [PATCH] AutoYADM commit: 2025-04-21 13:15:05 --- .config/fish/functions/nv.fish | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.config/fish/functions/nv.fish b/.config/fish/functions/nv.fish index ad82ec70..e805af59 100644 --- a/.config/fish/functions/nv.fish +++ b/.config/fish/functions/nv.fish @@ -2,4 +2,13 @@ function nv --description 'nvchecker script' nvchecker echo Changes:\n nvcmp + echo \nDo you want to mark the updates as applied? + set -l prompt Type UPDATE to run `nvtake`, anything else to quit': ' + read -l response --prompt-str="$prompt" + # clear prompt + printf "\033[1A\033[2K" + printf "\033[1A\033[2K" + if test "$response" = UPDATE; or return 0 + nvtake + end end