remove push scirpy cause i use lazygit

This commit is contained in:
joy 2024-10-10 01:10:41 +02:00
parent 0867ba6840
commit 48322125fd
3 changed files with 4 additions and 29 deletions

View file

@ -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": {

View file

@ -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";

View file

@ -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