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