Skip to content

Commit 9ae9c40

Browse files
committed
init: complete existing files on Tcsh completion
Fixes #523
1 parent c6a72dd commit 9ae9c40

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ Modules 5.4.0 (not yet released)
151151
* Add ``--ignore`` option to :mfcmd:`source-sh` modulefile command to define
152152
shell elements changed by shell script that should be ignored. (fix issue
153153
#503)
154+
* Init: Improve Tcsh shell completion script to complete against existing
155+
files when pattern starts with ``/``, ``.`` or ``~/``. (fix issue #523)
154156

155157

156158
.. _5.3 release notes:

init/tcsh_completion.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ alias _module_not_yet_loaded '\\
2929

3030
alias _module_modulepath 'echo ${MODULEPATH} | sed '"'"'s/:/\n/g;'"'"' '
3131

32-
complete module 'n/help/`_module_avail`/' \
32+
complete module 'C,/*,f,' 'C,.*,f,' 'C,~/*,f,' \
33+
'n/help/`_module_avail`/' \
3334
'n/add/`_module_not_yet_loaded; echo "@comp_load_opts@"`/' \
3435
'n/load/`_module_not_yet_loaded; echo "@comp_load_opts@"`/' \
3536
'n/add-any/`_module_not_yet_loaded; echo "@comp_load_opts@"`/' \

0 commit comments

Comments
 (0)