nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ci: compile the manual
[nit.git]
/
misc
/
bash_completion
/
nit
diff --git
a/misc/bash_completion/nit
b/misc/bash_completion/nit
index
6d464ec
..
bd949fe
100644
(file)
--- 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)"
# 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
- fi
-
if [[ $(type -t _$cmd) == function ]]; then
# All if fine, finish the job by invoking the function _$cmd
_$cmd
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
} &&
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