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.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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" {
|
||||||
|
|||||||
Reference in New Issue
Block a user