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