make hme git pull first

This commit is contained in:
Bit Borealis 2023-08-19 07:16:17 +00:00
parent db25ca5a6e
commit 72407f2b9e
Signed by: theotheroracle
GPG Key ID: 2D816A2DCA6E5649
1 changed files with 4 additions and 1 deletions

View File

@ -257,7 +257,6 @@ with import ./modules/neovim-config.nix { inherit pkgs lib fromGitHub; };
nxr = "nix run nixpkgs#";
nxh = "nix shell nixpkgs#";
nxc = "sudo nix-collect-garbage -d";
hme = "edit ~/.config/home-manager/home.nix";
};
shellAliases = {
nxu = ''sudo sh -c "nixos-rebuild boot --upgrade --log-format internal-json -v |& nom --json"'';
@ -270,6 +269,10 @@ with import ./modules/neovim-config.nix { inherit pkgs lib fromGitHub; };
pf = "sudo ping -f -c 100 -A 1.1.1.1";
};
functions = {
hme = ''
git pull
edit ~/.config/home-manager/home.nix";
'';
hmu = ''
set -l hm_before_commit $PWD
cd ~/.config/home-manager/