From e64ef321121727e02aa8c3c142e609abe365f03f Mon Sep 17 00:00:00 2001 From: cubernetes Date: Fri, 16 Oct 2026 15:55:34 +0200 Subject: [PATCH] Implement custom bash_completion loading so it doesn't conflict with bashrc_forward plugin --- modules/home-manager/bash.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/home-manager/bash.nix b/modules/home-manager/bash.nix index 0000c74..5943aa3 100644 --- a/modules/home-manager/bash.nix +++ b/modules/home-manager/bash.nix @@ -1,10 +1,14 @@ -{ ... }: +{ pkgs, ... }: { programs.bash = { enable = true; + enableCompletion = false; initExtra = '' - [ "''${BASH_COMPLETION_VERSINFO-}" ] || unset -v BASH_COMPLETION_VERSINFO +if [[ ! -v BASH_COMPLETION_VERSINFO ]] && + [[ -f "${pkgs.bash-completion}/etc/profile.d/bash_completion.sh" ]]; then + source "${pkgs.bash-completion}/etc/profile.d/bash_completion.sh" +fi [ "$DISPLAY" ] && xset r rate 300 60