mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Rename sub-config to profile
Because better naming.
This commit is contained in:
parent
1b77ed783b
commit
232cbee697
9 changed files with 43 additions and 41 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue