https://github.com/krisnova/home/blob/main/bin/git-save
This commit is contained in:
parent
3fc67873dd
commit
54b49c07bb
1 changed files with 20 additions and 0 deletions
20
modules2/scripts/git-save.nix
Normal file
20
modules2/scripts/git-save.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
flake.modules.homeManager.base =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = [
|
||||
(pkgs.writeShellApplication {
|
||||
name = "git-save";
|
||||
|
||||
runtimeInputs = with pkgs; [ git ];
|
||||
|
||||
text = ''
|
||||
git status
|
||||
git add .
|
||||
git commit -s -m "Automated commit"
|
||||
git push
|
||||
'';
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue