]> rtime.felk.cvut.cz Git - sojka/sterm.git/commitdiff
Teach shell completions about the -t option
authorMichal Sojka <michal.sojka@cvut.cz>
Sat, 4 Jan 2020 16:56:05 +0000 (17:56 +0100)
committerMichal Sojka <michal.sojka@cvut.cz>
Sat, 4 Jan 2020 16:56:05 +0000 (17:56 +0100)
completion.bash
completion.zsh

index 32e2d26ca6c56c48a394371af316b8c46e1ac514..a219146c8cf832494d9a2bcba3646544b81ded9e 100644 (file)
@@ -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
index 2f9847a77205061b7518cbc562bb017c8b002d3e..e4dabecbb36e4fa9fc61ba935f4d9729a824cbdd 100644 (file)
@@ -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)