]> git.sur5r.net Git - tio/blobdiff - src/bash-completion/tio.in
New upstream version 2.2
[tio] / src / bash-completion / tio.in
index ca115e600cbbcba25c7f562f1e0c41bc0105c311..82cb649964f54863791cfca21593ca0eaad797ed 100644 (file)
@@ -94,7 +94,7 @@ _tio()
             return 0
             ;;
         -m | --map)
-            COMPREPLY=( $(compgen -W "ICRNL IGNCR INLCR INLCRNL OCRNL ODELBS ONLCRNL" -- ${cur}) )
+            COMPREPLY=( $(compgen -W "ICRNL IGNCR INLCR INLCRNL OCRNL ODELBS ONLCRNL MSB2LSB" -- ${cur}) )
             return 0
             ;;
         -t | --timestamp)
@@ -159,12 +159,14 @@ _tio()
             ;;
     esac
 
+    sub_configs="`tio --complete-sub-configs`"
+
     if [ -d /dev/serial/by-id ]; then
         ttys=$(printf '%s\n' /dev/tty* /dev/serial/by-id/*)
     else
         ttys=$(printf '%s\n' /dev/tty*)
     fi
-    COMPREPLY=( $(compgen -W "${ttys}" -- ${cur}) )
+    COMPREPLY=( $(compgen -W "${ttys} ${sub_configs}" -- ${cur}) )
     return 0
 }