init: add ml command completion for tcsh shell

Add simple completion (loaded modules, avail modules) to "ml" command
for tcsh shell.

Fixes #416
This commit is contained in:
Laurent Besson
2024-02-28 14:52:59 +01:00
committed by Xavier Delaruelle
parent 00a177e7a6
commit 439acc5bfd

View File

@@ -107,3 +107,7 @@ complete module 'C,/*,f,' 'C,.*,f,' 'C,~/*,f,' \
'C/sw*/(switch)/' \
"p/1/(@comp_cmds@ @comp_opts@)/" \
"n/-*/(@comp_cmds@)/"
complete ml 'c/-/`_module_loaded`/' \
'p/1-/`_module_not_yet_loaded`//'