pkgs/git-pp: Git pull and push in one go
This commit is contained in:
parent
f9ab9b4136
commit
edc2461e5a
@ -124,6 +124,7 @@
|
||||
chromium-incognito
|
||||
git-checkout-github-pr
|
||||
git-diff-word
|
||||
git-pp
|
||||
iot-data
|
||||
nix-remove-result-links
|
||||
nixfiles-auto-install
|
||||
|
9
pkgs/git-pp/default.nix
Normal file
9
pkgs/git-pp/default.nix
Normal file
@ -0,0 +1,9 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
pkgs.writeShellApplication {
|
||||
name = "git-pp";
|
||||
text = builtins.readFile ./git-pp.sh;
|
||||
runtimeInputs = with pkgs; [
|
||||
git
|
||||
];
|
||||
}
|
5
pkgs/git-pp/git-pp.sh
Executable file
5
pkgs/git-pp/git-pp.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
git pull --rebase && git push
|
@ -9,6 +9,7 @@ final: prev: {
|
||||
chromium-incognito = final.callPackage ./chromium-incognito {};
|
||||
git-checkout-github-pr = final.callPackage ./git-checkout-github-pr {};
|
||||
git-diff-word = final.callPackage ./git-diff-word {};
|
||||
git-pp = final.callPackage ./git-pp {};
|
||||
iot-data = final.python3.pkgs.callPackage ./iot-data {};
|
||||
nix-remove-result-links = final.callPackage ./nix-remove-result-links {};
|
||||
nixfiles-auto-install = final.callPackage ./nixfiles/nixfiles-auto-install.nix {};
|
||||
|
Loading…
Reference in New Issue
Block a user