From 48afc040f39007ed4a177ab6a4b3fbe48114f981 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 15 May 2022 19:17:09 -0300 Subject: 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. --- etc/bash/rc | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'etc/bash') 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 -- cgit v1.2.3