From bed8cb4c5cb9b0f5455cef6df6997dfc6c6ebde0 Mon Sep 17 00:00:00 2001 From: cswimr Date: Sat, 16 Nov 2024 22:04:54 -0500 Subject: [PATCH] added a bunch of shell aliases --- nixos/zsh.nix | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/nixos/zsh.nix b/nixos/zsh.nix index 349d202..cf90079 100755 --- a/nixos/zsh.nix +++ b/nixos/zsh.nix @@ -30,16 +30,27 @@ theme = "agnoster"; }; - shellAliases = { + shellAliases = let ezaArgs = "--time-style='+%Y-%m-%d %H:%M' --icons"; + in { ff = "fastfetch"; neofetch = "fastfetch"; nf = "fastfetch"; cat = "bat"; - ls = "eza --icons"; - l = "eza -lhg --icons"; + l = "eza -lhg ${ezaArgs}"; + la = "eza -lAh ${ezaArgs}"; + ll = "eza -lhg ${ezaArgs}"; + ls = "eza ${ezaArgs}"; + lsa = "eza -lah ${ezaArgs}"; - upd = "sudo nixos-generate-config --dir /etc/nixos/hosts && sudo rm /etc/nixos/hosts/configuration.nix && sudo mv /etc/nixos/hosts/hardware-configuration.nix /etc/nixos/hosts/$(hostname).nix && git -C /etc/nixos --git-dir=/etc/nixos/.git add /etc/nixos/hosts/$(hostname).nix && sudo nixos-rebuild switch"; + nixrc = "$EDITOR /etc/nixos"; + upd = + "sudo nixos-generate-config --dir /etc/nixos/hosts && sudo rm /etc/nixos/hosts/configuration.nix && sudo mv /etc/nixos/hosts/hardware-configuration.nix /etc/nixos/hosts/$(hostname).nix && git -C /etc/nixos --git-dir=/etc/nixos/.git add /etc/nixos/hosts/$(hostname).nix && sudo nixos-rebuild switch"; + + taildrop = "tailscale file"; + + forgejo-runner = "act_runner"; + runactions = "act_runner exec --default-actions-url=https://www.coastalcommits.com --gitea-instance=https://www.coastalcommits.com"; c = "clear"; # alias sudo to itself so user aliases can be sudoed