26 current 2025-03-18 20:54:54 25.05.20250315.c80f6a7 6.12.19 *
This commit is contained in:
parent
34d6bfb809
commit
0704dabcd3
@ -6,6 +6,10 @@
|
||||
enable = true;
|
||||
plugins = [
|
||||
{name = "zsh-users/zsh-autosuggestions";}
|
||||
{
|
||||
name = "sindresorhus/pure";
|
||||
tags = [as:theme depth:1];
|
||||
}
|
||||
];
|
||||
};
|
||||
syntaxHighlighting.enable = true;
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user