refactor(zsh/alias): Simplify code

This commit is contained in:
Ahmad Ansori Palembani 2024-11-05 20:58:09 +07:00
parent e4c9e1c890
commit fa82e59cec
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -146,7 +146,7 @@ alias center-pfetch="printf '\n'; pfetch | sed '\$d' | center -l"
alias neofetch='fastfetch' alias neofetch='fastfetch'
[ "$ZI_NIX_FLAKE" = "" ] || { [ $ZI_NIX_FLAKE ] && {
# FIXME: Alias for NixOS # FIXME: Alias for NixOS
[ $ZI_IS_DARWIN = 1 ] && { [ $ZI_IS_DARWIN = 1 ] && {
alias nix-switch='darwin-rebuild switch --flake $ZI_NIX_FLAKE' alias nix-switch='darwin-rebuild switch --flake $ZI_NIX_FLAKE'