From 96f59282903291218389c19254310cf993432a20 Mon Sep 17 00:00:00 2001 From: lohhiiccc Date: Mon, 30 Mar 2026 16:39:56 +0200 Subject: [PATCH] fix: bash autocompletion on arch --- bash/.bashrc.d/autocomplete | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bash/.bashrc.d/autocomplete b/bash/.bashrc.d/autocomplete index c2beb71..22b6bcb 100644 --- a/bash/.bashrc.d/autocomplete +++ b/bash/.bashrc.d/autocomplete @@ -17,6 +17,13 @@ function setup_completion() { export COMP_WORDBREAKS="${COMP_WORDBREAKS//\/}" bind 'set mark-directories on' bind 'set mark-symlinked-directories on' + + for bash_comp in /etc /usr/share/bash-completion; do + if [ -f "$bash_comp/bash_completion" ]; then + . "$bash_comp/bash_completion" + break + fi + done } function setup_fzf() { @@ -30,6 +37,5 @@ function setup_fzf() { done } -. /etc/bash_completion setup_completion setup_fzf