From dd796a81801dd0b4b6a890e0a4dac9b827970264 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Thu, 11 Jun 2015 22:53:58 -0400 Subject: [PATCH] misc/bash_completion: remove hack for nitg Signed-off-by: Jean Privat --- misc/bash_completion/nit | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/misc/bash_completion/nit b/misc/bash_completion/nit index fa48b79..bd949fe 100644 --- a/misc/bash_completion/nit +++ b/misc/bash_completion/nit @@ -27,12 +27,6 @@ _nit_lazy() { # and setup a new `complete` for the command eval "$($1 --bash-completion)" - # Special case for `nitg` that uses the completion of `nitc` - if test "$cmd" = "nitg"; then - cmd=nitc - complete -F _nitc -o default nitg - fi - if [[ $(type -t _$cmd) == function ]]; then # All if fine, finish the job by invoking the function _$cmd _$cmd @@ -42,4 +36,4 @@ _nit_lazy() { return 1 fi } && -complete -F _nit_lazy -o default nit nitc nitdoc nitg nitlight nitls nitmetrics nitunit nitx +complete -F _nit_lazy -o default nit nitc nitdoc nitlight nitls nitmetrics nitunit nitx -- 1.7.9.5