This commit is contained in:
DACHXY 2024-12-28 20:16:33 +08:00
parent 04a4c8d998
commit fd48df0d43
5 changed files with 124 additions and 12 deletions

17
home/user/shellAlias.nix Normal file
View file

@ -0,0 +1,17 @@
{
ls = "exa";
cat = "bat";
y = "yazi";
g = "git";
cd = "z"; # Zoxide
t = "tmux";
# Nixos
rebuild = "sudo nixos-rebuild switch --flake /etc/nixos";
fullClean = "nix-collect-garbage --delete-old && sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
# Systemd Boot
setWin = "sudo bootctl set-oneshot auto-windows";
goWin = "sudo bootctl set-oneshot auto-windows && reboot";
goBios = "sudo bootctl set-onshot auto-reboot-to-firmware-setup && reboot";
}