~shulhan/awwan

9bc70d5b638d70f4d09da415423745cd2dc1e8b2 — Shulhan 5 months ago 71b4092
completions: enable completion on first parameter in local and play

The first parameter of "local" and "play" command is the path to file
to execute.
1 files changed, 10 insertions(+), 2 deletions(-)

M _sys/usr/share/bash-completion/completions/awwan
M _sys/usr/share/bash-completion/completions/awwan => _sys/usr/share/bash-completion/completions/awwan +10 -2
@@ 47,10 47,18 @@ _awwan_completions()
	help)
		;;
	local)
		COMPREPLY=($(compgen -A file -X "?(*.log|.*)" -- "$key"))
		case $COMP_CWORD in
		2)
			COMPREPLY=($(compgen -A file -X "?(*.log|.*)" -- "$key"))
			;;
		esac
		;;
	play)
		COMPREPLY=($(compgen -A file -X "?(*.log|.*)" -- "$key"))
		case $COMP_CWORD in
		2)
			COMPREPLY=($(compgen -A file -X "?(*.log|.*)" -- "$key"))
			;;
		esac
		;;
	serve)
		COMPREPLY=($(compgen -A directory -- "$key"))