zsh: alias grep='rg' find='fd' and add alias g for lazygit

This commit is contained in:
Tigor Hutasuhut 2024-10-21 20:42:31 +07:00
parent 0aca8192f7
commit c76c9bd3d6

View file

@ -1,8 +1,7 @@
{ { pkgs
pkgs, , lib
lib, , config
config, , ...
...
}: }:
let let
inherit (lib.strings) optionalString concatStrings; inherit (lib.strings) optionalString concatStrings;
@ -40,12 +39,15 @@ in
superupdate = "nh os switch --update"; superupdate = "nh os switch --update";
uptest = "nh os test"; uptest = "nh os test";
lg = "${pkgs.lazygit}/bin/lazygit"; lg = "${pkgs.lazygit}/bin/lazygit";
g = "${pkgs.lazygit}/bin/lazygit";
du = "${pkgs.dust}/bin/dust"; du = "${pkgs.dust}/bin/dust";
dry = "sudo nixos-rebuild dry-activate --flake $HOME/dotfiles"; dry = "sudo nixos-rebuild dry-activate --flake $HOME/dotfiles";
jq = "${pkgs.gojq}/bin/gojq"; jq = "${pkgs.gojq}/bin/gojq";
n = lib.mkIf config.profile.neovide.enable "neovide"; n = lib.mkIf config.profile.neovide.enable "neovide";
v = "nvim"; v = "nvim";
cd = "z"; cd = "z";
grep = "${pkgs.ripgrep}/bin/rg";
find = "${pkgs.fd}/bin/fd";
}; };
dotDir = ".config/zsh"; dotDir = ".config/zsh";
history = { history = {