[DEV] correct autocomplesion
This commit is contained in:
parent
3111d3899f
commit
18b37ba5d0
@ -61,7 +61,7 @@ _lutin()
|
|||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
--target)
|
--target)
|
||||||
local names=`lutin.py --list-target`
|
local names=`lutin --list-target`
|
||||||
COMPREPLY=( $(compgen -W "${names}" -- ${cur}) )
|
COMPREPLY=( $(compgen -W "${names}" -- ${cur}) )
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
@ -82,9 +82,9 @@ _lutin()
|
|||||||
COMPREPLY=( $(compgen -W "${optshorts}" -- ${cur}) )
|
COMPREPLY=( $(compgen -W "${optshorts}" -- ${cur}) )
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
listmodule=`lutin.py --list-module`
|
listmodule=`lutin --list-module`
|
||||||
COMPREPLY=( $(compgen -W "${listmodule}" -- ${cur}) )
|
COMPREPLY=( $(compgen -W "${listmodule}" -- ${cur}) )
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
complete -F _lutin lutin.py
|
complete -F _lutin lutin
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
to install autocompletion for lutin :
|
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 ...
|
==> and restart bash ...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user