From 48322125fdd26cf042c0f72091dabb15f5f67f04 Mon Sep 17 00:00:00 2001 From: joy Date: Thu, 10 Oct 2024 01:10:41 +0200 Subject: [PATCH] remove push scirpy cause i use lazygit --- flake.lock | 6 +++--- modules/apps/home/zsh/default.nix | 2 +- modules/apps/home/zsh/scripts/push.sh | 25 ------------------------- 3 files changed, 4 insertions(+), 29 deletions(-) delete mode 100755 modules/apps/home/zsh/scripts/push.sh diff --git a/flake.lock b/flake.lock index 29a5161..1d0316b 100644 --- a/flake.lock +++ b/flake.lock @@ -202,11 +202,11 @@ ] }, "locked": { - "lastModified": 1728503345, - "narHash": "sha256-bnImj7qx0yFtmQLN/gT3VhpVix7EZOftRX8el+EB14o=", + "lastModified": 1728514645, + "narHash": "sha256-6O2HxWfQIE2lLhRbKIvjc+HeAe+LoW035K2Vi6c7AG4=", "owner": "joygnu", "repo": "home-manager", - "rev": "ce8e31efebff3d8c96c6c35e0923b6bdae986be5", + "rev": "cb82d0505a433d71c58586b96a3bac94b7b457ad", "type": "github" }, "original": { diff --git a/modules/apps/home/zsh/default.nix b/modules/apps/home/zsh/default.nix index fb3602c..03abbbc 100644 --- a/modules/apps/home/zsh/default.nix +++ b/modules/apps/home/zsh/default.nix @@ -11,8 +11,8 @@ ls = "${pkgs.eza}/bin/eza --icons -a --group-directories-first"; v = "hx"; cat = "bat"; + lg = "lazygit"; ser = "ssh root@joygnu.org"; - pu = "sh ~/nix/modules/apps/home/zsh/scripts/push.sh"; ip = "sh ~/nix/modules/apps/home/zsh/scripts/ip.sh"; rb = "sh ~/nix/modules/apps/home/zsh/scripts/rebuild.sh"; fr = "sudo systemctl reboot --firmware"; diff --git a/modules/apps/home/zsh/scripts/push.sh b/modules/apps/home/zsh/scripts/push.sh deleted file mode 100755 index 769c35d..0000000 --- a/modules/apps/home/zsh/scripts/push.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -# Function to push to all remotes -push_to_all_remotes() { - # Get a list of all remotes - remotes=$(git remote) - - # Check if there are no remotes - if [ -z "$remotes" ]; then - echo "No remotes found." - exit 1 - fi - - # Loop through each remote and push - for remote in $remotes; do - echo "Pushing to remote '$remote'..." - git push "$remote" --all - git push "$remote" --tags - echo "Push to remote '$remote' completed." - done -} - -# Execute the function -push_to_all_remotes -