2024-11-11 23:23 : id 88

This commit is contained in:
deadvey 2024-11-11 23:46:25 +00:00
parent e3c0315c53
commit 211c89d3d3
2 changed files with 14 additions and 0 deletions

13
edithome Executable file
View File

@ -0,0 +1,13 @@
sudo nvim $HOME/.config/home-manager/home.nix
sudo home-manager switch &>home-switch.log || (
cat home-switch.log | grep --color error && false)
gen=$(home-manager generations | head -n1 | sed 's/->.*//')
sudo cp -r $HOME/.config/home-manager .
git add .
git commit -m "$gen"
if grep -q "error" home-switch.log; then
echo "There was an error in your Home Manager Config, please fix it before you push to git"
else
git push
fi

1
home-switch.log Normal file
View File

@ -0,0 +1 @@
sudo: a password is required