2024-11-11 23:23 : id 88
This commit is contained in:
parent
e3c0315c53
commit
211c89d3d3
13
edithome
Executable file
13
edithome
Executable 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
1
home-switch.log
Normal file
@ -0,0 +1 @@
|
|||||||
|
sudo: a password is required
|
Loading…
x
Reference in New Issue
Block a user