Skip to content

Commit f201cda

Browse files
committed
completion/system: load earlier than other completions
1 parent 6aaa689 commit f201cda

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Diff for: completion/available/system.completion.bash

100644100755
+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Loads the system's Bash completion modules.
44
# If Homebrew is installed (OS X), it's Bash completion modules are loaded.
55

6+
# Load before other completions
7+
# BASH_IT_LOAD_PRIORITY: 300
8+
69
if shopt -qo nounset
710
then # Bash-completion is too large and complex to expect to handle unbound variables throughout the whole codebase.
811
__bash_it_restore_nounset=true

Diff for: test/install/install.bats

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function local_setup {
3232
assert_link_exist "$BASH_IT/enabled/250---base.plugin.bash"
3333
assert_link_exist "$BASH_IT/enabled/365---alias-completion.plugin.bash"
3434
assert_link_exist "$BASH_IT/enabled/350---bash-it.completion.bash"
35-
assert_link_exist "$BASH_IT/enabled/350---system.completion.bash"
35+
assert_link_exist "$BASH_IT/enabled/300---system.completion.bash"
3636
}
3737

3838
@test "install: verify that a backup file is created" {

0 commit comments

Comments
 (0)