Skip to content

Commit

Permalink
init: add ml command completion for tcsh shell
Browse files Browse the repository at this point in the history
Add simple completion (loaded modules, avail modules) to "ml" command
for tcsh shell.

Fixes #416
  • Loading branch information
LaurentBessonEasii authored and xdelaruelle committed Apr 17, 2024
1 parent 00a177e commit ca68a7a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions init/tcsh_completion.in
Original file line number Diff line number Diff line change
Expand Up @@ -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`//'

0 comments on commit ca68a7a

Please sign in to comment.