fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Robert Helgessonbash: support bash completionf5e9879e

master
463 B23 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  programs.bash.enable = true;
7
8  test.stubs.bash-completion = { };
9
10  nmt.script = ''
11    assertFileExists home-files/.bashrc
12
13    assertFileContains \
14      home-files/.bashrc \
15      'if [[ ! -v BASH_COMPLETION_VERSINFO ]]; then'
16    assertFileContains \
17      home-files/.bashrc \
18      '  . "@bash-completion@/etc/profile.d/bash_completion.sh"'
19    assertFileContains \
20      home-files/.bashrc \
21      'fi'
22  '';
23}