From 025bb46f2e7d5c51a9fce20f52302644b1b1cc85 Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Fri, 12 Jul 2024 10:21:06 +0700 Subject: [PATCH] zsh: aliases uses pkgs when possible --- home/programs/zsh.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/home/programs/zsh.nix b/home/programs/zsh.nix index f09f547..1051186 100644 --- a/home/programs/zsh.nix +++ b/home/programs/zsh.nix @@ -28,16 +28,16 @@ in pictures = "$HOME/Pictures"; }; shellAliases = { - ls = "eza -lah"; - cat = "bat"; + ls = "${pkgs.eza}/bin/eza -lah"; + cat = "${pkgs.bat}/bin/bat"; update = "sudo nixos-rebuild switch --flake $HOME/dotfiles"; superupdate = "(cd $HOME/dotfiles && nix flake update && sudo nixos-rebuild switch --flake $HOME/dotfiles)"; - lg = "lazygit"; - du = "dust -H"; + lg = "${pkgs.lazygit}/bin/lazygit"; + du = "${pkgs.dust}/bin/dust"; uptest = "sudo nixos-rebuild test --flake $HOME/dotfiles"; dry = "sudo nixos-rebuild dry-activate --flake $HOME/dotfiles"; - jq = "gojq"; - n = "neovide"; + jq = "${pkgs.gojq}/bin/gojq"; + n = lib.mkIf config.profile.neovide.enable "neovide"; v = "nvim"; cd = "z"; };