[DEV] correct autocomplesion

This commit is contained in:
Edouard DUPIN 2015-06-07 08:23:53 +02:00
parent 3111d3899f
commit 18b37ba5d0
2 changed files with 4 additions and 4 deletions

View File

@ -61,7 +61,7 @@ _lutin()
return 0
;;
--target)
local names=`lutin.py --list-target`
local names=`lutin --list-target`
COMPREPLY=( $(compgen -W "${names}" -- ${cur}) )
return 0
;;
@ -82,9 +82,9 @@ _lutin()
COMPREPLY=( $(compgen -W "${optshorts}" -- ${cur}) )
return 0
fi
listmodule=`lutin.py --list-module`
listmodule=`lutin --list-module`
COMPREPLY=( $(compgen -W "${listmodule}" -- ${cur}) )
return 0
}
complete -F _lutin lutin.py
complete -F _lutin lutin

View File

@ -1,6 +1,6 @@
to install autocompletion for lutin :
sudo cp bash-autocompletion/lutin.py /etc/bash_completion.d
sudo cp bash-autocompletion/lutin /etc/bash_completion.d
==> and restart bash ...