Add platform specific update alias
This commit is contained in:
parent
b9ae841286
commit
bc2e8d2166
|
@ -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
3
home/env/zsh.nix
vendored
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue