home/fish: wrap "nix {build,shell}" with nom if possible

This commit is contained in:
Primrose 2026-01-18 01:05:15 +01:00
parent 3acb95f745
commit 0798147e92
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -0,0 +1,11 @@
function nix
if [ $(count $argv) -lt 1 ]
command nix $argv
end
and if [ $argv[1] = "build" -o $argv[1] = "shell" ] && type -q nom
nom $argv
else
command nix $argv
end
end