Skip to content

Commit c40b466

Browse files
committed
completion/system: load earlier than other completions
1 parent 0b551aa commit c40b466

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

completion/available/system.completion.bash

100644100755
Lines changed: 3 additions & 0 deletions
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

test/install/install.bats

Lines changed: 1 addition & 1 deletion
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)