1
0

Bug: completeion profile

This commit is contained in:
MatMoul 2025-08-25 03:09:14 +02:00
parent 5684cd3a54
commit 87653b7e27

View File

@ -29,7 +29,7 @@ _mtm-ssh-vpn() {
case $prev in case $prev in
--help | status | disconnect_all) return;; --help | status | disconnect_all) return;;
connect) connect)
local -r PROFILELIST=$(\ls "${PROFILE_DIR}") local -r PROFILELIST=$(\ls "${PROFILE_DIR}/profiles")
# shellcheck disable=SC2207 # shellcheck disable=SC2207
COMPREPLY=($(compgen -W "${PROFILELIST}" -- "${COMP_WORDS[COMP_CWORD]}")) COMPREPLY=($(compgen -W "${PROFILELIST}" -- "${COMP_WORDS[COMP_CWORD]}"))
return return