zsh: Add alias for rebuild-switch
This commit is contained in:
parent
e3046029df
commit
e112c9f5ee
@ -21,7 +21,10 @@ in {
|
|||||||
home-manager.users."${config.ptw.system.singleUser}".programs.zsh = {
|
home-manager.users."${config.ptw.system.singleUser}".programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
history.ignoreSpace = 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";
|
ls = "ls --color=always";
|
||||||
".." = "cd ..";
|
".." = "cd ..";
|
||||||
"..." = "cd ../../";
|
"..." = "cd ../../";
|
||||||
@ -33,6 +36,8 @@ in {
|
|||||||
gds = "git diff --staged";
|
gds = "git diff --staged";
|
||||||
c = "clear";
|
c = "clear";
|
||||||
suspend = "systemctl suspend";
|
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";
|
waifu2x = "flatpak run com.github.nihui.waifu2x-ncnn-vulkan";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user