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 | |
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')
-rw-r--r-- | etc/bash/rc | 15 | ||||
-rw-r--r-- | 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 |