From: Jean Privat Date: Thu, 11 Dec 2014 03:39:22 +0000 (-0500) Subject: bash_completion: switch nitg and nitc X-Git-Tag: v0.7~51^2 X-Git-Url: http://nitlanguage.org bash_completion: switch nitg and nitc Signed-off-by: Jean Privat --- diff --git a/misc/bash_completion/nit b/misc/bash_completion/nit index 6d464ec..fa48b79 100644 --- a/misc/bash_completion/nit +++ b/misc/bash_completion/nit @@ -27,10 +27,10 @@ _nit_lazy() { # and setup a new `complete` for the command eval "$($1 --bash-completion)" - # Special case for `nitc` that uses the completion of `nitg` - if test "$cmd" = "nitc"; then - cmd=nitg - complete -F _nitg -o default nitc + # 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