nix/home-manager/shared/programs/shell/fish/functions.nix
iofq 8694c7d81f
All checks were successful
/ check (push) Successful in 3m6s
jj changes
2026-02-16 00:48:38 -06:00

24 lines
480 B
Nix

{
nix-shell = {
wraps = "nix-shell";
body = ''
command nix-shell $argv --command "fish"
'';
};
nix = {
wraps = "nix";
body = ''
if status is-interactive
and test (count $argv) = 1 -a "$argv[1]" = develop
nix develop --command (status fish-path)
else
command nix $argv
end
'';
};
nix-prefetch-hash = {
body = ''
nix-hash --type sha256 --to-base64 (nix-prefetch-url $argv)
'';
};
}