From d08032d6850d28063c0715aa54b1c18e0d0b966d Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Thu, 15 Apr 2021 00:28:39 +0200 Subject: river-options: rework, bump to v2 Options are now all global but may be overridden per-output. If an output local value is requested but none has been set, the global value is provided instead. This makes for much better ergonomics when configuring layout related options in particular. --- completions/bash/riverctl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'completions/bash/riverctl') diff --git a/completions/bash/riverctl b/completions/bash/riverctl index e744cd1..4a34c03 100644 --- a/completions/bash/riverctl +++ b/completions/bash/riverctl @@ -45,6 +45,7 @@ function __riverctl_completion () declare-option \ get-option \ set-option \ + unset-option \ mod-option" COMPREPLY=($(compgen -W "${OPTS}" -- "${COMP_WORDS[1]}")) elif [ "${COMP_CWORD}" -eq 2 ] @@ -56,7 +57,7 @@ function __riverctl_completion () "map"|"unmap") OPTS="-release" ;; "attach-mode") OPTS="top bottom" ;; "focus-follows-cursor") OPTS="disabled normal strict" ;; - "declare-option"|"get-option"|"set-option"|"mod-option") OPTS="-output -focused-output" ;; + "get-option"|"set-option"|"unset-option"|"mod-option") OPTS="-output -focused-output" ;; *) return ;; esac COMPREPLY=($(compgen -W "${OPTS}" -- "${COMP_WORDS[2]}")) @@ -66,4 +67,3 @@ function __riverctl_completion () } complete -F __riverctl_completion riverctl - -- cgit v1.2.3