# --- AUTOCOMPLETION --- complete -c servicectl -f set -l commands start stop restart status enable disable activate complete -c servicectl -n "not __fish_seen_subcommand_from $commands" -a "$commands" # Подсказываем имена сервисов из папки репозитория (SV_DIR) complete -c servicectl -n "__fish_seen_subcommand_from $commands" -a "(command ls -1 /etc/s6/sv/ 2>/dev/null)"