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 +++++++++------ etc/guix/home.scm | 2 +- 2 files changed, 10 insertions(+), 7 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 diff --git a/etc/guix/home.scm b/etc/guix/home.scm index 54bcf56..4820850 100644 --- a/etc/guix/home.scm +++ b/etc/guix/home.scm @@ -184,7 +184,7 @@ man-pages posix-man-pages - bash-completion ;; FIXME: should this exist? IIUC, this is a misleading name + bash-completion git git:send-email -- cgit v1.2.3