Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions completion/available/defaults.completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
# shellcheck disable=SC1090

if test -s "${BASH_IT?}/vendor/github.com/gaelicWizard/bash-progcomp/defaults.completion.bash"; then
# shellcheck disable=SC1090
source "$_"
fi
7 changes: 4 additions & 3 deletions completion/available/gradle.completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ __gradle-set-build-file() {

__gradle-set-cache-name() {
# Cache name is constructed from the absolute path of the build file.
cache_name=${gradle_build_file//'/'/_}
cache_name=${gradle_build_file//"/"/_}
}

__gradle-set-files-checksum() {
Expand All @@ -64,8 +64,9 @@ __gradle-set-files-checksum() {

__gradle-generate-script-cache() {
# Invalidate cache after 3 weeks by default
local cache_ttl_mins=${GRADLE_CACHE_TTL_MINUTES:-30240}
local script_exclude_pattern=${GRADLE_COMPLETION_EXCLUDE_PATTERN:-"/(build|integTest|out)/"}
local cache_ttl_mins script_exclude_pattern gradle_build_scripts
cache_ttl_mins=${GRADLE_CACHE_TTL_MINUTES:-30240}
script_exclude_pattern=${GRADLE_COMPLETION_EXCLUDE_PATTERN:-"/(build|integTest|out)/"}

if [[ ! $(find "$cache_dir/$cache_name" -mmin "-$cache_ttl_mins" 2> /dev/null) ]]; then
# Cache all Gradle scripts
Expand Down
1 change: 1 addition & 0 deletions completion/available/pew.completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
# shellcheck disable=SC1090

if _command_exists pew; then
# shellcheck disable=SC1090
source "$(pew shell_config)"
fi
1 change: 1 addition & 0 deletions completion/available/travis.completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

if _command_exists travis; then
if [[ -s "${__TRAVIS_COMPLETION_SCRIPT:=${TRAVIS_CONFIG_PATH:-${HOME}/.travis}/travis.sh}" ]]; then
# shellcheck disable=SC1090
source "${__TRAVIS_COMPLETION_SCRIPT}"
fi
unset __TRAVIS_COMPLETION_SCRIPT
Expand Down
Loading