Skip to content

Commit

Permalink
nixos: programs.bash: Fix comment about completion
Browse files Browse the repository at this point in the history
`XDG_DATA_DIRS` already includes what is typically the `share` directory.
Adding an extra `share` breaks it.
  • Loading branch information
roberth committed Nov 4, 2018
1 parent f4508c4 commit c4f6745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/programs/bash/bash.nix
Expand Up @@ -16,7 +16,7 @@ let
# programmable completion. If we do, enable all modules installed in
# the system and user profile in obsolete /etc/bash_completion.d/
# directories. Bash loads completions in all
# $XDG_DATA_DIRS/share/bash-completion/completions/
# $XDG_DATA_DIRS/bash-completion/completions/
# on demand, so they do not need to be sourced here.
if shopt -q progcomp &>/dev/null; then
. "${pkgs.bash-completion}/etc/profile.d/bash_completion.sh"
Expand Down

0 comments on commit c4f6745

Please sign in to comment.