completion/system: load earlier than other completions

I chose `325` so that it's still possible to deliberately place something *before* this component, if needed somehow.
pull/2013/head
John D Pell 2021-09-17 15:57:48 -07:00
parent b846c86dbb
commit e7c3263f12
2 changed files with 5 additions and 2 deletions

View File

@ -1,8 +1,11 @@
#!/usr/bin/env bash # shellcheck shell=bash
# #
# Loads the system's Bash completion modules. # Loads the system's Bash completion modules.
# If Homebrew is installed (OS X), it's Bash completion modules are loaded. # If Homebrew is installed (OS X), it's Bash completion modules are loaded.
# Load before other completions
# BASH_IT_LOAD_PRIORITY: 325
if shopt -qo nounset if shopt -qo nounset
then # Bash-completion is too large and complex to expect to handle unbound variables throughout the whole codebase. then # Bash-completion is too large and complex to expect to handle unbound variables throughout the whole codebase.
__bash_it_restore_nounset=true __bash_it_restore_nounset=true

View File

@ -32,7 +32,7 @@ function local_setup {
assert_link_exist "$BASH_IT/enabled/250---base.plugin.bash" assert_link_exist "$BASH_IT/enabled/250---base.plugin.bash"
assert_link_exist "$BASH_IT/enabled/365---alias-completion.plugin.bash" assert_link_exist "$BASH_IT/enabled/365---alias-completion.plugin.bash"
assert_link_exist "$BASH_IT/enabled/350---bash-it.completion.bash" assert_link_exist "$BASH_IT/enabled/350---bash-it.completion.bash"
assert_link_exist "$BASH_IT/enabled/350---system.completion.bash" assert_link_exist "$BASH_IT/enabled/325---system.completion.bash"
} }
@test "install: verify that a backup file is created" { @test "install: verify that a backup file is created" {