The unpac monorepo manager self-hosting as a monorepo using unpac
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

bash completion: tell completion system when we are using filenames

Close #238 #241

authored by

Brian Ward and committed by
Daniel Bünzli
2860e704 75045ed8

+9
+5
vendor/opam/cmdliner/CHANGES.md
··· 1 + 2 + 3 + - Improve bash completion on files and directories (#238). 4 + Thanks to Brian Ward for the report and fix. 5 + 1 6 v2.0.0 2025-09-26 Zagreb 2 7 ------------------------ 3 8
+2
vendor/opam/cmdliner/src/tool/bash-completion.sh
··· 15 15 read group 16 16 elif [[ $type == "dirs" ]] && (type compopt &> /dev/null); then 17 17 if [[ $prefix != -* ]]; then 18 + compopt -o filenames 18 19 COMPREPLY+=( $(compgen -d "$prefix") ) 19 20 fi 20 21 elif [[ $type == "files" ]] && (type compopt &> /dev/null); then 21 22 if [[ $prefix != -* ]]; then 23 + compopt -o filenames 22 24 COMPREPLY+=( $(compgen -f "$prefix") ) 23 25 fi 24 26 elif [[ $type == "message" ]]; then
+2
vendor/opam/cmdliner/src/tool/cmdliner_data.ml
··· 16 16 read group 17 17 elif [[ $type == "dirs" ]] && (type compopt &> /dev/null); then 18 18 if [[ $prefix != -* ]]; then 19 + compopt -o filenames 19 20 COMPREPLY+=( $(compgen -d "$prefix") ) 20 21 fi 21 22 elif [[ $type == "files" ]] && (type compopt &> /dev/null); then 22 23 if [[ $prefix != -* ]]; then 24 + compopt -o filenames 23 25 COMPREPLY+=( $(compgen -f "$prefix") ) 24 26 fi 25 27 elif [[ $type == "message" ]]; then