feat: add which-nix script
This commit is contained in:
parent
e2b6699215
commit
56abb0ce64
1 changed files with 14 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue