diff --git a/modules/programs/zsh/default.nix b/modules/programs/zsh/default.nix index b633d28..f5f9663 100644 --- a/modules/programs/zsh/default.nix +++ b/modules/programs/zsh/default.nix @@ -21,7 +21,10 @@ in { home-manager.users."${config.ptw.system.singleUser}".programs.zsh = { enable = true; history.ignoreSpace = true; - shellAliases = { + shellAliases = let + home = "/home/${config.ptw.system.singleUser}/Development/Personal/nixos-config"; + nixosSwitch = "nixos-rebuild --flake .#${config.ptw.system.hostName} switch"; + in { ls = "ls --color=always"; ".." = "cd .."; "..." = "cd ../../"; @@ -33,6 +36,8 @@ in { gds = "git diff --staged"; c = "clear"; suspend = "systemctl suspend"; + nixos-rebuild-switch = "pushd; cd ${home}; sudo ${nixosSwitch}; popd"; + nixos-rebuild-switch-fast = "pushd; cd ${home}; sudo ${nixosSwitch} --fast; popd"; waifu2x = "flatpak run com.github.nihui.waifu2x-ncnn-vulkan"; };