Rename sub-config to profile

Because better naming.
This commit is contained in:
Martin Lund 2024-04-27 09:13:29 +02:00
parent 1b77ed783b
commit 232cbee697
9 changed files with 43 additions and 41 deletions

View file

@ -197,14 +197,14 @@ _tio()
;;
esac
sub_configs="`tio --complete-sub-configs`"
profiles="`tio --complete-profiles`"
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} ${sub_configs}" -- ${cur}) )
COMPREPLY=( $(compgen -W "${ttys} ${profiles}" -- ${cur}) )
return 0
}