scmpuff: init (#1921)
scmpuff is a command line tool that allows you to work quicker with Git by substituting numeric shortcuts for files
This commit is contained in:
parent
db00b39a9a
commit
26fa84ebce
10 changed files with 136 additions and 0 deletions
15
tests/modules/programs/scmpuff/bash.nix
Normal file
15
tests/modules/programs/scmpuff/bash.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ pkgs, ... }: {
|
||||
config = {
|
||||
programs = {
|
||||
scmpuff.enable = true;
|
||||
bash.enable = true;
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.bashrc
|
||||
assertFileContains \
|
||||
home-files/.bashrc \
|
||||
'eval "$(${pkgs.gitAndTools.scmpuff}/bin/scmpuff init -s)"'
|
||||
'';
|
||||
};
|
||||
}
|
||||
7
tests/modules/programs/scmpuff/default.nix
Normal file
7
tests/modules/programs/scmpuff/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
scmpuff-bash = ./bash.nix;
|
||||
scmpuff-no-bash = ./no-bash.nix;
|
||||
scmpuff-no-shell = ./no-shell.nix;
|
||||
scmpuff-no-zsh = ./no-zsh.nix;
|
||||
scmpuff-zsh = ./zsh.nix;
|
||||
}
|
||||
15
tests/modules/programs/scmpuff/no-bash.nix
Normal file
15
tests/modules/programs/scmpuff/no-bash.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ pkgs, ... }: {
|
||||
config = {
|
||||
programs = {
|
||||
scmpuff = {
|
||||
enable = true;
|
||||
enableBashIntegration = false;
|
||||
};
|
||||
bash.enable = true;
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileNotRegex home-files/.bashrc '${pkgs.gitAndTools.scmpuff}/bin/scmpuff'
|
||||
'';
|
||||
};
|
||||
}
|
||||
18
tests/modules/programs/scmpuff/no-shell.nix
Normal file
18
tests/modules/programs/scmpuff/no-shell.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ pkgs, ... }: {
|
||||
config = {
|
||||
programs = {
|
||||
scmpuff = {
|
||||
enable = true;
|
||||
enableBashIntegration = false;
|
||||
enableZshIntegration = false;
|
||||
};
|
||||
bash.enable = true;
|
||||
zsh.enable = true;
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileNotRegex home-files/.zshrc '${pkgs.gitAndTools.scmpuff} init -s'
|
||||
assertFileNotRegex home-files/.bashrc '${pkgs.gitAndTools.scmpuff} init -s'
|
||||
'';
|
||||
};
|
||||
}
|
||||
15
tests/modules/programs/scmpuff/no-zsh.nix
Normal file
15
tests/modules/programs/scmpuff/no-zsh.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ pkgs, ... }: {
|
||||
config = {
|
||||
programs = {
|
||||
scmpuff = {
|
||||
enable = true;
|
||||
enableZshIntegration = false;
|
||||
};
|
||||
zsh.enable = true;
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileNotRegex home-files/.zshrc '${pkgs.gitAndTools.scmpuff} init -s'
|
||||
'';
|
||||
};
|
||||
}
|
||||
15
tests/modules/programs/scmpuff/zsh.nix
Normal file
15
tests/modules/programs/scmpuff/zsh.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ pkgs, ... }: {
|
||||
config = {
|
||||
programs = {
|
||||
scmpuff.enable = true;
|
||||
zsh.enable = true;
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.zshrc
|
||||
assertFileContains \
|
||||
home-files/.zshrc \
|
||||
'eval "$(${pkgs.gitAndTools.scmpuff}/bin/scmpuff init -s)"'
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue