diff options
author | EuAndreh <eu@euandre.org> | 2022-05-15 19:17:09 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-05-15 19:17:11 -0300 |
commit | 48afc040f39007ed4a177ab6a4b3fbe48114f981 (patch) | |
tree | 247f9dad7f8444d5c3db0ac90599d5871ccdb883 /etc/bash/rc | |
parent | etc/bash/check.sh: Exclude the file from FIXME check (diff) | |
download | dotfiles-48afc040f39007ed4a177ab6a4b3fbe48114f981.tar.gz dotfiles-48afc040f39007ed4a177ab6a4b3fbe48114f981.tar.xz |
etc/bash/rc: Remove FIXME marker from bash-completion handling
Moved to help-guix@gnu.org.
See <165265271797.19845.1907620860408175547@localhost>.
Also, only load completion files when running interactively, as there is
no way to make that code behave, it's totally out of my control.
Diffstat (limited to 'etc/bash/rc')
-rw-r--r-- | etc/bash/rc | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/etc/bash/rc b/etc/bash/rc index 7f1d75d..f81e350 100644 --- a/etc/bash/rc +++ b/etc/bash/rc @@ -329,9 +329,12 @@ if [ -r "$XDG_CONFIG_HOME"/bash/privrc.sh ]; then . "$XDG_CONFIG_HOME"/bash/privrc.sh fi - - -# FIXME: completion -for f in "$HOME_ENVIRONMENT"/profile/etc/bash_completion.d/*; do - . "$f" -done +case $- in + *i*) + for f in "$HOME_ENVIRONMENT"/profile/etc/bash_completion.d/*; do + . "$f" + done + ;; + *) + ;; +esac |