26 current 2025-03-18 20:54:54 25.05.20250315.c80f6a7 6.12.19 *

This commit is contained in:
Gustav Bruhn 2025-03-18 20:55:09 +01:00
parent 34d6bfb809
commit 0704dabcd3
2 changed files with 8 additions and 3 deletions

View File

@ -6,6 +6,10 @@
enable = true;
plugins = [
{name = "zsh-users/zsh-autosuggestions";}
{
name = "sindresorhus/pure";
tags = [as:theme depth:1];
}
];
};
syntaxHighlighting.enable = true;

View File

@ -3,9 +3,7 @@ set -e
pushd ~/nixos/
test=$(git diff --quiet '*.nix'):W
git add .
alejandra . &>/dev/null \
|| (alejandra . ; echo "formatting failed!" && exit 1)
@ -16,11 +14,14 @@ echo "Rebuilding"
sudo nixos-rebuild switch --upgrade --flake .
current=$(nixos-rebuild list-generations | grep current)
git restore --staged .
if test; then
if git diff --quiet '*.nix'; then
popd
exit 0
fi
git add .
git commit -am "$current"
git push