feat: add which-nix script

This commit is contained in:
Moritz Böhme 2023-08-26 11:43:56 +02:00
parent e2b6699215
commit 56abb0ce64
Signed by: moritz
GPG key ID: 970C6E89EB0547A9

View file

@ -32,6 +32,17 @@ let
'';
};
which-nix = pkgs.writeFishApplication {
name = "which-nix";
runtimeInputs = with pkgs; [ which coreutils-full ];
text = /* fish */ ''
readlink -f (which $argv)
'';
completions = /* fish */ ''
complete -c which-nix -fa '(__fish_complete_command)'
'';
};
gi = pkgs.writeFishApplication
{
name = "gi";
@ -139,11 +150,12 @@ in
(nom-system-command "nixos-boot" "sudo nixos-rebuild boot --flake ~/.dotfiles")
(nom-system-command "nixos-switch" "sudo nixos-rebuild switch --flake ~/.dotfiles")
comma
manix
nix-index
nix-output-monitor
nixpkgs-fmt
statix
manix
nix-output-monitor
which-nix
# other
bat