From f379ffb8ed9bba0dafc2a7c1430ccb1a2517f99c Mon Sep 17 00:00:00 2001 From: Ryan Farley Date: Fri, 11 Jun 2021 04:40:08 -0500 Subject: Override options from command line Allow any configuration option to be overridden with -o/--override 'section.key=value' arguments, as suggested in #554 update completitions for override slight refactoring to ease footclient support --- completions/bash/foot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'completions/bash') diff --git a/completions/bash/foot b/completions/bash/foot index 6fbe635f..f03a9f53 100644 --- a/completions/bash/foot +++ b/completions/bash/foot @@ -17,6 +17,7 @@ _foot() "--log-no-syslog" "--login-shell" "--maximized" + "--override" "--print-pid" "--server" "--term" @@ -70,7 +71,7 @@ _foot() COMPREPLY=( $(compgen -W "error warning info" -- ${cur}) ) elif [[ ${prev} == '--log-colorize' ]] ; then COMPREPLY=( $(compgen -W "never always auto" -- ${cur}) ) - elif [[ ${prev} =~ ^(--app-id|--help|--title|--version|--window-size-chars|--window-size-pixels|--check-config)$ ]] ; then + elif [[ ${prev} =~ ^(--app-id|--help|--override|--title|--version|--window-size-chars|--window-size-pixels|--check-config)$ ]] ; then : # don't autocomplete for these flags else # complete commands from $PATH -- cgit v1.3