Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 77879
Collapse All | Expand All

(-)gentoo (-4 / +5 lines)
Lines 272-280 _ebuild() Link Here
272
	COMPREPLY=()
272
	COMPREPLY=()
273
	cur=${COMP_WORDS[COMP_CWORD]}
273
	cur=${COMP_WORDS[COMP_CWORD]}
274
	if [ $COMP_CWORD -eq 1 ]; then
274
	if [ $COMP_CWORD -eq 1 ]; then
275
		#COMPREPLY=($(compgen -o filenames -X "!*.ebuild" $cur))
275
		COMPREPLY=($(compgen -f -X "!*.ebuild" -- ${cur}) $(compgen -d -- ${cur}) $(compgen -W '--debug' -- ${cur}))
276
		COMPREPLY=($(compgen -o filenames -A file -W "--debug" -- ${cur}))
276
	elif [ $COMP_CWORD -eq 2 -a "${COMP_WORDS[1]}" = "--debug" ]; then
277
	elif [ $COMP_CWORD -eq 2 ]; then
277
		COMPREPLY=($(compgen -f -X "!*.ebuild" -- ${cur}) $(compgen -d -- ${cur}))
278
	elif [ $COMP_CWORD -ge 2 ]; then
278
		COMPREPLY=($(compgen -W 'clean compile config \
279
		COMPREPLY=($(compgen -W 'clean compile config \
279
			depend digest \
280
			depend digest \
280
			fetch \
281
			fetch \
Lines 289-295 _ebuild() Link Here
289
	fi
290
	fi
290
	return 0
291
	return 0
291
}
292
}
292
complete $default -F _ebuild ebuild
293
complete $filenames -F _ebuild ebuild
293
}
294
}
294
295
295
#
296
#

Return to bug 77879