TCSH tab auto complete with the part of current typed command
0
votes
1
answer
163
views
I am trying to write my own complete for a command.
The completion needs to use a portion of the typed command to for a path search.
I am trying to get the following behavior
When I write
my_commad -ws my_ws -t[TAB]
a list of folders under my_ws/tests appears as a list of completion
I couldn't figure out how to break it
I tried the following, but failed because of quotes problem, I guess
complete my_command 'n@-t@echo $COMMAND_LINE | perl -ne '/-ws (\w+)/; print $1'
@'
Asked by Dan Messer
(3 rep)
Mar 23, 2024, 07:22 PM
Last activity: Mar 24, 2024, 02:18 PM
Last activity: Mar 24, 2024, 02:18 PM