diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2021-04-15 00:28:39 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2021-04-20 18:27:03 +0200 |
| commit | d08032d6850d28063c0715aa54b1c18e0d0b966d (patch) | |
| tree | 582f6e1ef56b395ccf599708136589ee09cdcb7f /completions/bash | |
| parent | 33fb7725c5a9d68d28bc2a30537210518aef3486 (diff) | |
| download | river-d08032d6850d28063c0715aa54b1c18e0d0b966d.tar.gz river-d08032d6850d28063c0715aa54b1c18e0d0b966d.tar.xz | |
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.
Diffstat (limited to 'completions/bash')
| -rw-r--r-- | completions/bash/riverctl | 4 |
1 files changed, 2 insertions, 2 deletions
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 - |
