From a8a9ac625643e230936fce6954f2efc01300aa4b Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Sat, 4 Jan 2020 17:56:05 +0100 Subject: [PATCH] Teach shell completions about the -t option --- completion.bash | 2 +- completion.zsh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/completion.bash b/completion.bash index 32e2d26..a219146 100644 --- a/completion.bash +++ b/completion.bash @@ -6,7 +6,7 @@ _sterm() { _init_completion || return COMPREPLY=() #cur="${COMP_WORDS[COMP_CWORD]}" - local ops="-h --help -c -d -e -n -r -s -v" + local ops="-h --help -c -d -e -n -r -s -t -v" case "$prev" in -b|-d|-r) # No completion for these diff --git a/completion.zsh b/completion.zsh index 2f9847a..e4dabec 100644 --- a/completion.zsh +++ b/completion.zsh @@ -12,6 +12,7 @@ _sterm_defs() { "-r[Make pulse on RTS]" \ "-e[Ignore '~.' escape sequence]" \ "-n[Do not switch stdin to raw mode]" \ + "-t[Delay \[ms\] between transmitted characters]" \ "-v[Verbose mode]" _path_files } @@ -20,7 +21,7 @@ _sterm() { if (( CURRENT > 2)); then local prev=${words[(( CURRENT - 1))]} case "${prev}" in - -b|-d|-r) + -b|-d|-r|-t) # No completion for these ;; -s) -- 2.39.2