-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#index-show_002dall_002dif_002dambiguous | ||
set show-all-if-ambiguous on | ||
# https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#index-visible_002dstats | ||
set visible-stats on | ||
# https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#index-page_002dcompletions | ||
set page-completions off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
unix/.local/share/bash-completion/completions/install-ccache.bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
__install_ccache_debug() { | ||
if [[ -n ${BASH_COMP_DEBUG_FILE:-} ]]; then | ||
echo "$*" >>"$BASH_COMP_DEBUG_FILE" | ||
fi | ||
} | ||
|
||
__start_install_ccache() { | ||
local cur prev words cword | ||
|
||
_init_completion || return | ||
|
||
__install_ccache_debug | ||
__install_ccache_debug '========= starting install-ccache completion logic ==========' | ||
__install_ccache_debug "cur = $cur, prev = $prev, words[*] = ${words[*]}, #words[@] = ${#words[@]}, cword is $cword" | ||
|
||
if [[ $cur = -* ]]; then | ||
# shellcheck disable=SC2016 | ||
mapfile -t COMPREPLY < <(compgen -W '$(_parse_help "$1")' -- "$cur") | ||
fi | ||
} | ||
|
||
complete -o default -F __start_install_ccache install-ccache |