Implement custom bash_completion loading so it doesn't conflict with bashrc_forward plugin
This commit is contained in:
parent
70f4f215c0
commit
e64ef32112
1 changed files with 6 additions and 2 deletions
|
|
@ -1,10 +1,14 @@
|
||||||
{ ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.bash = {
|
programs.bash = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
enableCompletion = false;
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
[ "''${BASH_COMPLETION_VERSINFO-}" ] || unset -v BASH_COMPLETION_VERSINFO
|
if [[ ! -v BASH_COMPLETION_VERSINFO ]] &&
|
||||||
|
[[ -f "${pkgs.bash-completion}/etc/profile.d/bash_completion.sh" ]]; then
|
||||||
|
source "${pkgs.bash-completion}/etc/profile.d/bash_completion.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
[ "$DISPLAY" ] && xset r rate 300 60
|
[ "$DISPLAY" ] && xset r rate 300 60
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue