From 18b37ba5d08a3bcf58580ce80c6f23332379ff1d Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Sun, 7 Jun 2015 08:23:53 +0200 Subject: [PATCH] [DEV] correct autocomplesion --- bash-autocompletion/{lutin.py => lutin} | 6 +++--- bash-autocompletion/readme | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename bash-autocompletion/{lutin.py => lutin} (94%) diff --git a/bash-autocompletion/lutin.py b/bash-autocompletion/lutin similarity index 94% rename from bash-autocompletion/lutin.py rename to bash-autocompletion/lutin index 9ad80c7..d1a3d12 100755 --- a/bash-autocompletion/lutin.py +++ b/bash-autocompletion/lutin @@ -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 \ No newline at end of file +complete -F _lutin lutin \ No newline at end of file diff --git a/bash-autocompletion/readme b/bash-autocompletion/readme index e89ef7a..b97ccb1 100644 --- a/bash-autocompletion/readme +++ b/bash-autocompletion/readme @@ -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 ...