From 09a81da417ae4b874aba1b432ff3b714806ee742 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Thu, 14 Mar 2024 09:07:44 +0100 Subject: [PATCH] Migrate shell alias for TYPO3 git push to custom command To streamline the setup, as other things are also commands instead of aliases. --- home/home.nix | 2 -- home/packages/custom/default.nix | 1 + home/packages/custom/typo3-push-core/default.nix | 11 +++++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 home/packages/custom/typo3-push-core/default.nix diff --git a/home/home.nix b/home/home.nix index 5947c36..fa96166 100644 --- a/home/home.nix +++ b/home/home.nix @@ -101,8 +101,6 @@ in { # Tmux outside tmux. ta = "tmux attach"; tc = "tmux new-session -s "; - - t3Push = "git push origin HEAD:refs/for/main"; }; enableNixpkgsReleaseCheck = true; diff --git a/home/packages/custom/default.nix b/home/packages/custom/default.nix index 131c759..5f6ec7e 100644 --- a/home/packages/custom/default.nix +++ b/home/packages/custom/default.nix @@ -10,6 +10,7 @@ (callPackage ./nextcloud-sync/from-remote.nix { }) (callPackage ./typo3-documentation-rendering { }) (callPackage ./typo3-documentation-rendering-old { }) + (callPackage ./typo3-push-core { }) (callPackage ./zcat-progress { }) (callPackage ./project { inherit ownLib; diff --git a/home/packages/custom/typo3-push-core/default.nix b/home/packages/custom/typo3-push-core/default.nix new file mode 100644 index 0000000..7a14a37 --- /dev/null +++ b/home/packages/custom/typo3-push-core/default.nix @@ -0,0 +1,11 @@ +{ + writeShellApplication +}: + +writeShellApplication { + name = "custom-typo3-push-core"; + + text = '' + git push origin HEAD:refs/for/main + ''; +}