git-worktree-switcher: init module
This commit is contained in:
parent
59fe145f0b
commit
9c8169b446
8 changed files with 121 additions and 1 deletions
17
tests/modules/programs/git-worktree-switcher/bash.nix
Normal file
17
tests/modules/programs/git-worktree-switcher/bash.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs = {
|
||||
bash.enable = true;
|
||||
git-worktree-switcher.enable = true;
|
||||
};
|
||||
|
||||
test.stubs.git-worktree-switcher = { name = "git-worktree-switcher"; };
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.bashrc
|
||||
assertFileContains \
|
||||
home-files/.bashrc \
|
||||
'eval "$(@git-worktree-switcher@/bin/git-worktree-switcher init bash)"'
|
||||
'';
|
||||
}
|
||||
5
tests/modules/programs/git-worktree-switcher/default.nix
Normal file
5
tests/modules/programs/git-worktree-switcher/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
git-worktree-switcher-bash = ./bash.nix;
|
||||
git-worktree-switcher-fish = ./fish.nix;
|
||||
git-worktree-switcher-zsh = ./zsh.nix;
|
||||
}
|
||||
17
tests/modules/programs/git-worktree-switcher/fish.nix
Normal file
17
tests/modules/programs/git-worktree-switcher/fish.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs = {
|
||||
fish.enable = true;
|
||||
git-worktree-switcher.enable = true;
|
||||
};
|
||||
|
||||
test.stubs.git-worktree-switcher = { name = "git-worktree-switcher"; };
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/fish/config.fish
|
||||
assertFileContains \
|
||||
home-files/.config/fish/config.fish \
|
||||
'@git-worktree-switcher@/bin/git-worktree-switcher init fish | source'
|
||||
'';
|
||||
}
|
||||
17
tests/modules/programs/git-worktree-switcher/zsh.nix
Normal file
17
tests/modules/programs/git-worktree-switcher/zsh.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs = {
|
||||
zsh.enable = true;
|
||||
git-worktree-switcher.enable = true;
|
||||
};
|
||||
|
||||
test.stubs.git-worktree-switcher = { name = "git-worktree-switcher"; };
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.zshrc
|
||||
assertFileContains \
|
||||
home-files/.zshrc \
|
||||
'eval "$(@git-worktree-switcher@/bin/git-worktree-switcher init zsh)"'
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue