me
/
guix
Archived
1
0
Fork 0

gnu: bash-completion: Remove rudimentary /$base.

* gnu/packages/patches/bash-completion-directories.patch: Remove rudimentary
/$base.
master
Andrew Tropin 2022-08-31 14:43:57 +03:00
parent 5ce7178eb8
commit 2e559a3585
No known key found for this signature in database
GPG Key ID: 2208D20958C1DEB0
1 changed files with 6 additions and 6 deletions

View File

@ -18,12 +18,12 @@ This is what this patch does.
- local -a dirs=(${BASH_COMPLETION_USER_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/bash-completion}/completions)
+ local -a dirs=(
+ ${BASH_COMPLETION_USER_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/bash-completion}/completions
+ "$HOME/.guix-profile/share/bash-completion/completions/$base"
+ "$HOME/.guix-profile/etc/bash_completion.d/$base"
+ "$HOME/.guix-home/profile/share/bash-completion/completions/$base"
+ "$HOME/.guix-home/profile/etc/bash_completion.d/$base"
+ "/run/current-system/profile/share/bash-completion/completions/$base"
+ "/run/current-system/profile/etc/bash_completion.d/$base" )
+ "$HOME/.guix-profile/share/bash-completion/completions"
+ "$HOME/.guix-profile/etc/bash_completion.d"
+ "$HOME/.guix-home/profile/share/bash-completion/completions"
+ "$HOME/.guix-home/profile/etc/bash_completion.d"
+ "/run/current-system/profile/share/bash-completion/completions"
+ "/run/current-system/profile/etc/bash_completion.d" )
+
local ifs=$IFS IFS=: dir cmd="${1##*/}" compfile
[[ -n $cmd ]] || return 1