aboutsummaryrefslogtreecommitdiff
path: root/completions/bash
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2021-04-15 00:28:39 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2021-04-20 18:27:03 +0200
commitd08032d6850d28063c0715aa54b1c18e0d0b966d (patch)
tree582f6e1ef56b395ccf599708136589ee09cdcb7f /completions/bash
parent33fb7725c5a9d68d28bc2a30537210518aef3486 (diff)
downloadriver-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/riverctl4
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
-