summaryrefslogblamecommitdiffstats
path: root/skripti/completion.bash
blob: fbe834d62b2a90b6a379de30eb94c8da2bdad7c2 (plain) (tree)
1
2
3
4
5
6





                                                                                    
# completion skript za vse stvari v /skripti/
_service_sh_complete() {
	[ $1 = $3 ] && { COMPREPLY=($(compgen -W "`service.sh list`" $2)); return; }
	COMPREPLY=($(compgen -W "`service.sh $3 list`" $2))
}
complete -F _service_sh_complete service.sh