if [[ -n $(command -v arTTY) ]]; then compdef _gnu_generic arTTY _arTTY_complete() { reply=($(arTTY --ls -p)); } compctl -K _arTTY_complete arTTY fi ArTTY can generate source code from images too. It ...