Artifact 1a548da23d623145e7a35d5a755c5abb9421175679fb3ea2aa3bc001287ccfa0:
- File tools/fossil-autocomplete.bash — part of check-in [99ad7fc3f6] at 2019-04-17 14:50:30 on branch trunk — Applied a fix to fossil-autocomplete.bash posted on the forum, said to avoid adding a space to the end of an autocompleted path: https://fossil-scm.org/forum/forumpost/7ba4a4c495 (user: wyoung size: 544) [more...]
# Command name completion for Fossil. # Mailing-list contribution by Stuart Rackham. function _fossil() { local cur commands cur=${COMP_WORDS[COMP_CWORD]} commands=$(fossil help --all) if [ $COMP_CWORD -eq 1 ] || [ ${COMP_WORDS[1]} = help ]; then # Command name completion for 1st argument or 2nd if help command. COMPREPLY=( $(compgen -W "$commands" $cur) ) else # File name completion for other arguments. COMPREPLY=( $(compgen -f $cur{}) ) fi } complete -o default -F _fossil fossil f