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 guix home profile, as well as in the system profile. This is what this patch does. --- a/bash_completion +++ b/bash_completion @@ -2173,7 +2173,15 @@ complete -F _minimal '' __load_completion() { - 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" + "$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 for dir in ${XDG_DATA_DIRS:-/usr/local/share:/usr/share}; do dirs+=( $dir/bash-completion/completions ) em/keyboard.scm?id=78b3727b6030715aef69a999f97a5d8e673a89db'>commitdiff
path: root/gnu/system/keyboard.scm
AgeCommit message (Collapse)Author
2020-04-06system: Allow for comma-separated keyboard layouts.Ludovic Courtès
Reported by Florian Pelz <pelzflorian@pelzflorian.de>. * gnu/bootloader/grub.scm (keyboard-layout-file): Replace commas with hyphens in the first argument to 'computed-file'. * gnu/system/keyboard.scm (keyboard-layout->console-keymap): Likewise. * doc/guix.texi (Keyboard Layout): Add example.
2019-03-24Add (gnu system keyboard).Ludovic Courtès
* gnu/system/keyboard.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. * gnu.scm (%public-modules): Add it.