Add platform specific update alias

This commit is contained in:
Evie Litherland-Smith 2023-05-06 06:55:45 +01:00
parent b9ae841286
commit bc2e8d2166
2 changed files with 1 additions and 3 deletions

View file

@ -20,6 +20,7 @@
home.packages = with pkgs; [ silver-searcher ]; home.packages = with pkgs; [ silver-searcher ];
programs.zsh.shellAliases.update = "home-manager switch";
programs.zsh.envExtra = '' programs.zsh.envExtra = ''
eval "$(/opt/homebrew/bin/brew shellenv)" eval "$(/opt/homebrew/bin/brew shellenv)"
''; '';

3
home/env/zsh.nix vendored
View file

@ -5,9 +5,6 @@
enable = true; enable = true;
shellAliases = { shellAliases = {
ll = "ls -l"; ll = "ls -l";
update = "sudo nixos-rebuild switch";
nr = "sudo nixos-rebuild";
hm = "home-manager";
lg = "lazygit"; lg = "lazygit";
nv = "neovide --multigrid --maximized"; nv = "neovide --multigrid --maximized";
xnv = "WINIT_UNIX_BACKEND=x11 neovide --multigrid --maximized"; xnv = "WINIT_UNIX_BACKEND=x11 neovide --multigrid --maximized";