From bdde475e59362ead644e5c4390ee9a380e2e07d4 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Wed, 23 Apr 2025 00:00:05 -0400 Subject: [PATCH] AutoYADM commit: 2025-04-23 00:00:05 --- .config/fish/functions/nv.fish | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/.config/fish/functions/nv.fish b/.config/fish/functions/nv.fish index e805af59..2ab6f735 100644 --- a/.config/fish/functions/nv.fish +++ b/.config/fish/functions/nv.fish @@ -1,14 +1,18 @@ -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 +function nv --description 'nvchecker script' -a cmd + if test $cmd = show + cat ~/.config/nvchecker/new_ver.json + else + nvchecker + echo Changes:\n + nvcmp + echo \nDo you want to mark the updates as applied? + set -l prompt Type UPDATE to run `nvtake --all`, 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 --all + end end end