aboutsummaryrefslogtreecommitdiff
path: root/completions
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-01 20:10:47 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-01 20:10:47 +0000
commit438d6eaff0b4280492c8a0a161a33daec5de3707 (patch)
tree5dd2bb0988475cdf2ea535266a992a93aba738c7 /completions
parentterm_init(): initialize slave TERM from term_init() argument (diff)
client/server: add -t,--term to footclient
Diffstat (limited to 'completions')
-rw-r--r--completions/zsh/_footclient7
1 files changed, 7 insertions, 0 deletions
diff --git a/completions/zsh/_footclient b/completions/zsh/_footclient
index 6ab98fd0..47a050cb 100644
--- a/completions/zsh/_footclient
+++ b/completions/zsh/_footclient
@@ -2,5 +2,12 @@
_arguments \
-s \
+ '(-t,--term)'{-t,--term}'[value to set the environment variable TERM to (foot)]:term:->terms' \
'(-v --version)'{-v,--version}'[show the version number and quit]' \
'(-h --help)'{-h,--help}'[show help message and quit]'
+
+case ${state} in
+ terms)
+ _values 'terminal definitions' $(find /usr/share/terminfo -type f -printf "%f\n")
+ ;;
+esac