From c76c9bd3d6f55eb1a61de34972fc8991872f6d31 Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Mon, 21 Oct 2024 20:42:31 +0700 Subject: [PATCH] zsh: alias grep='rg' find='fd' and add alias g for lazygit --- home/programs/zsh.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/home/programs/zsh.nix b/home/programs/zsh.nix index d6d45c2..08818ad 100644 --- a/home/programs/zsh.nix +++ b/home/programs/zsh.nix @@ -1,8 +1,7 @@ -{ - pkgs, - lib, - config, - ... +{ pkgs +, lib +, config +, ... }: let inherit (lib.strings) optionalString concatStrings; @@ -40,12 +39,15 @@ in superupdate = "nh os switch --update"; uptest = "nh os test"; lg = "${pkgs.lazygit}/bin/lazygit"; + g = "${pkgs.lazygit}/bin/lazygit"; du = "${pkgs.dust}/bin/dust"; dry = "sudo nixos-rebuild dry-activate --flake $HOME/dotfiles"; jq = "${pkgs.gojq}/bin/gojq"; n = lib.mkIf config.profile.neovide.enable "neovide"; v = "nvim"; cd = "z"; + grep = "${pkgs.ripgrep}/bin/rg"; + find = "${pkgs.fd}/bin/fd"; }; dotDir = ".config/zsh"; history = {