From 19069aba4454f91e018bf51729c778ee2cbd4879 Mon Sep 17 00:00:00 2001 From: stitchy Date: Wed, 18 Dec 2024 07:48:02 +0000 Subject: [PATCH] zsh: add nixos-rebuild aliases --- config/zshrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/zshrc b/config/zshrc index 0595102..b959ed4 100755 --- a/config/zshrc +++ b/config/zshrc @@ -137,8 +137,13 @@ export RUSTUP_HOME="$XDG_DATA_HOME"/rustup export CARGO_HOME="$XDG_DATA_HOME"/cargo -alias dosbox="dosbox -conf "$XDG_CONFIG_HOME"/dosbox/dosbox.conf " +alias dosbox="dosbox -conf $XDG_CONFIG_HOME/dosbox/dosbox.conf" +alias rbs="reconfig switch" +alias rbb="reconfig build" +reconfig() { + sudo nixos-rebuild --flake "/etc/nixos#$(cat /etc/hostname)" "$@" +} # Autostart Hyprland after all environmental Variables have been declared if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then