nixos-edit: rebase when pulling

This commit is contained in:
Daniella / Tove 2024-10-31 17:40:26 +01:00
parent ad2a47d42b
commit f46fc2f042
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -92,7 +92,7 @@ pkgs.writeShellScriptBin "nixos-edit" ''
cd /etc/nixos cd /etc/nixos
if [ "$1" = "pull" ] ; then if [ "$1" = "pull" ] ; then
git pull git pull --rebase
fi fi
if [ "$1" = "edit" ] || [ "$1" = "" ] || [ "$1" = "test" ] ; then if [ "$1" = "edit" ] || [ "$1" = "" ] || [ "$1" = "test" ] ; then
sudo hx . sudo hx .