From 9250237a772d838963cf81a1ce6fe362e490cbcd Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Sun, 3 Nov 2024 14:26:51 +0100 Subject: [PATCH] add nb: nix build and ns: nix shell shell aliases --- modules/applications/zsh.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/modules/applications/zsh.nix b/modules/applications/zsh.nix index b429b69..23dbffc 100644 --- a/modules/applications/zsh.nix +++ b/modules/applications/zsh.nix @@ -1,4 +1,9 @@ -{ lib, config, pkgs, ... }: +{ + lib, + config, + pkgs, + ... +}: let cfg = config.modules.apps.zsh; in @@ -20,10 +25,12 @@ in ll = "lsd -l"; lt = "lsd -l --tree"; update = "nix flake update --commit-lock-file $HOME/nixos && sudo nixos-rebuild switch --flake $HOME/nixos"; + nb = "nix build -L"; + ns = "nix shell -L"; }; initExtra = '' - [[ ! -r /home/noa/.opam/opam-init/init.zsh ]] || source /home/noa/.opam/opam-init/init.zsh > /dev/null 2> /dev/null - ''; + [[ ! -r /home/noa/.opam/opam-init/init.zsh ]] || source /home/noa/.opam/opam-init/init.zsh > /dev/null 2> /dev/null + ''; history = { path = "${config.xdg.dataHome}/zsh/history"; size = 10000;