Bash-completion is written with FHS in mind where completion scripts all get added to /usr/share/bash-completion/completions and are picked up by the dynamic completion loader from there---whether they are part of bash-completion or installed by another package. On Guix systems, we want not only to search within bash-completion's own directory, but also in the user's profile and in the system profile. This is what this patch does. --- a/bash_completion +++ b/bash_completion @@ -2016,7 +2016,13 @@ complete -F _minimal '' __load_completion() { - local -a dirs=( ${BASH_COMPLETION_USER_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/bash-completion}/completions ) + local -a dirs=( + "$HOME/.guix-profile/share/bash-completion/completions/$base" + "$HOME/.guix-profile/etc/bash_completion.d/$base" + "/run/current-system/profile/share/bash-completion/completions/$base" + "/run/current-system/profile/etc/bash_completion.d/$base" + ${BASH_COMPLETION_USER_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/bash-completion}/completions ) + local OIFS=$IFS IFS=: dir cmd="${1##*/}" compfile for dir in ${XDG_DATA_DIRS:-/usr/local/share:/usr/share}; do dirs+=( $dir/bash-completion/completions ) e418f7aed593aa7'>treecommitdiff
path: root/tests/nar.scm
AgeCommit message (Expand)Author
2019-12-12serialization: Add 'fold-archive'....Ludovic Courtès
2019-01-18serialization: 'restore-file' errors out upon non-convertible file names....Ludovic Courtès
2018-11-13deduplication: Restore directory mtime and permissions after deduplication....Ludovic Courtès
2018-11-13tests: Check file canonicalization for 'restore-file-set'....Ludovic Courtès
2018-11-13tests: Remove check for a feature that appeared in Guile 2.0.10....Ludovic Courtès
2018-09-04Switch to Guile-Gcrypt....Ludovic Courtès
2018-07-19serialization: Add 'write-file-tree'....Ludovic Courtès
2017-03-18build: Require Guile >= 2.0.9....Ludovic Courtès
2017-03-08hash: Close or flush sha256 output ports before calling their 'get' procedure....Ludovic Courtès