diff --git a/roles/home-cli/files/profile b/roles/home-cli/files/profile index 4235507..2e17c87 100644 --- a/roles/home-cli/files/profile +++ b/roles/home-cli/files/profile @@ -81,11 +81,6 @@ then PS1="\[\033[01m\]${_acp_ps1_prefix}\u@\h\\$\[\033[00m\] " unset _acp_ps1_prefix - if [ -r /etc/profile.d/bash_completion.sh ] - then - . /etc/profile.d/bash_completion.sh - fi - elif [ -n "$ZSH_VERSION" ] then autoload -Uz compinit && compinit diff --git a/roles/home-cli/files/shrc b/roles/home-cli/files/shrc index f708de9..aad6fca 100644 --- a/roles/home-cli/files/shrc +++ b/roles/home-cli/files/shrc @@ -7,6 +7,10 @@ fi case "$-" in *i*) # Shell is interactive. + if [ -r /etc/profile.d/bash_completion.sh ] + then + . /etc/profile.d/bash_completion.sh + fi usermotd ;; *)