aboutsummaryrefslogtreecommitdiff
path: root/completions
diff options
context:
space:
mode:
Diffstat (limited to 'completions')
-rw-r--r--completions/bash/foot5
-rw-r--r--completions/fish/foot.fish1
-rw-r--r--completions/zsh/_foot1
3 files changed, 5 insertions, 2 deletions
diff --git a/completions/bash/foot b/completions/bash/foot
index eb17dad1..25aa2c49 100644
--- a/completions/bash/foot
+++ b/completions/bash/foot
@@ -19,6 +19,7 @@ _foot()
"--maximized"
"--override"
"--print-pid"
+ "--pty"
"--server"
"--term"
"--title"
@@ -39,7 +40,7 @@ _foot()
for word in "${previous_words[@]}" ; do
match=$(printf "$commands" | grep -Fx "$word" 2>/dev/null)
if [[ ! -z "$match" ]] ; then
- if [[ ${COMP_WORDS[i-1]} =~ ^(--app-id|--config|--font|--log-level|--term|--title|--window-size-pixels|--window-size-chars|--working-directory)$ ]] ; then
+ if [[ ${COMP_WORDS[i-1]} =~ ^(--app-id|--config|--font|--log-level|--pty|--term|--title|--window-size-pixels|--window-size-chars|--working-directory)$ ]] ; then
(( i++ ))
continue
fi
@@ -74,7 +75,7 @@ _foot()
COMPREPLY=( $(compgen -W "none error warning info" -- ${cur}) ) ;;
--log-colorize|-l)
COMPREPLY=( $(compgen -W "never always auto" -- ${cur}) ) ;;
- --app-id|--help|--override|--title|--version|--window-size-chars|--window-size-pixels|--check-config|-[ahoTvWwC])
+ --app-id|--help|--override|--pty|--title|--version|--window-size-chars|--window-size-pixels|--check-config|-[ahoTvWwC])
# Don't autocomplete for these flags
: ;;
*)
diff --git a/completions/fish/foot.fish b/completions/fish/foot.fish
index 86f6616d..eecb6488 100644
--- a/completions/fish/foot.fish
+++ b/completions/fish/foot.fish
@@ -18,5 +18,6 @@ complete -c foot -r -s p -l print-pid
complete -c foot -x -s d -l log-level -a "info warning error none" -d "log-level (warning)"
complete -c foot -x -s l -l log-colorize -a "always never auto" -d "enable or disable colorization of log output on stderr"
complete -c foot -s S -l log-no-syslog -d "disable syslog logging (server mode only)"
+complete -c foot -x -l pty -a '(__fish_complete_path)' -d "display an existing pty instead of creating one"
complete -c foot -s v -l version -d "show the version number and quit"
complete -c foot -s h -l help -d "show help message and quit"
diff --git a/completions/zsh/_foot b/completions/zsh/_foot
index b9f46cdc..2a0dc7b0 100644
--- a/completions/zsh/_foot
+++ b/completions/zsh/_foot
@@ -18,6 +18,7 @@ _arguments \
'(-s --server)'{-s,--server}'[run as server; open terminals by running footclient]:server:_files' \
'(-H --hold)'{-H,--hold}'[remain open after child process exits]' \
'(-p --print-pid)'{-p,--print-pid}'[print PID to this file or FD when up and running (server mode only)]:pidfile:_files' \
+ '--pty=[display an existing pty instead of creating one]:pty:_files' \
'(-d --log-level)'{-d,--log-level}'[log level (warning)]:loglevel:(info warning error none)' \
'(-l --log-colorize)'{-l,--log-colorize}'[enable or disable colorization of log output on stderr]:logcolor:(never always auto)' \
'(-S --log-no-syslog)'{-s,--log-no-syslog}'[disable syslog logging (server mode only)]' \