zsh: aliases uses pkgs when possible
This commit is contained in:
parent
7b37127348
commit
025bb46f2e
|
@ -28,16 +28,16 @@ in
|
||||||
pictures = "$HOME/Pictures";
|
pictures = "$HOME/Pictures";
|
||||||
};
|
};
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
ls = "eza -lah";
|
ls = "${pkgs.eza}/bin/eza -lah";
|
||||||
cat = "bat";
|
cat = "${pkgs.bat}/bin/bat";
|
||||||
update = "sudo nixos-rebuild switch --flake $HOME/dotfiles";
|
update = "sudo nixos-rebuild switch --flake $HOME/dotfiles";
|
||||||
superupdate = "(cd $HOME/dotfiles && nix flake update && sudo nixos-rebuild switch --flake $HOME/dotfiles)";
|
superupdate = "(cd $HOME/dotfiles && nix flake update && sudo nixos-rebuild switch --flake $HOME/dotfiles)";
|
||||||
lg = "lazygit";
|
lg = "${pkgs.lazygit}/bin/lazygit";
|
||||||
du = "dust -H";
|
du = "${pkgs.dust}/bin/dust";
|
||||||
uptest = "sudo nixos-rebuild test --flake $HOME/dotfiles";
|
uptest = "sudo nixos-rebuild test --flake $HOME/dotfiles";
|
||||||
dry = "sudo nixos-rebuild dry-activate --flake $HOME/dotfiles";
|
dry = "sudo nixos-rebuild dry-activate --flake $HOME/dotfiles";
|
||||||
jq = "gojq";
|
jq = "${pkgs.gojq}/bin/gojq";
|
||||||
n = "neovide";
|
n = lib.mkIf config.profile.neovide.enable "neovide";
|
||||||
v = "nvim";
|
v = "nvim";
|
||||||
cd = "z";
|
cd = "z";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue