feat: add which-nix script

dev-docs
Moritz Böhme 2023-08-26 11:43:56 +02:00
parent e2b6699215
commit 56abb0ce64
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
1 changed files with 14 additions and 2 deletions

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 gi = pkgs.writeFishApplication
{ {
name = "gi"; name = "gi";
@ -139,11 +150,12 @@ in
(nom-system-command "nixos-boot" "sudo nixos-rebuild boot --flake ~/.dotfiles") (nom-system-command "nixos-boot" "sudo nixos-rebuild boot --flake ~/.dotfiles")
(nom-system-command "nixos-switch" "sudo nixos-rebuild switch --flake ~/.dotfiles") (nom-system-command "nixos-switch" "sudo nixos-rebuild switch --flake ~/.dotfiles")
comma comma
manix
nix-index nix-index
nix-output-monitor
nixpkgs-fmt nixpkgs-fmt
statix statix
manix which-nix
nix-output-monitor
# other # other
bat bat