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:
Phillip Cloud 2021-04-22 22:27:29 -04:00 committed by GitHub
parent db00b39a9a
commit 26fa84ebce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 136 additions and 0 deletions

View 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)"'
'';
};
}

View 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;
}

View 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'
'';
};
}

View 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'
'';
};
}

View 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'
'';
};
}

View 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)"'
'';
};
}