init nixy loop

This commit is contained in:
Hadi
2024-10-15 17:42:52 +02:00
parent a88496af4f
commit 51c64ace97
2 changed files with 8 additions and 2 deletions

View File

@@ -62,6 +62,13 @@ let
elif [[ $1 == "remote" ]];then
cd ~/.config/nixos && git add . && git commit -m "update" && git push
ssh jack -S -C "cd /home/hadi/.config/nixos && git pull && sudo -S nixos-rebuild switch --flake ~/.config/nixos#jack"
elif [[ $1 == "loop" ]];then
while true; do
nixy
read -p "Press enter to continue, e to exit" -n 1 REPLY
echo
[[ $REPLY == "e" ]] && exit 0
done
else
echo "Unknown argument"
fi