From 0798147e92812dacc07fef98176be11ca1103d0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Sun, 18 Jan 2026 01:05:15 +0100 Subject: [PATCH] home/fish: wrap "nix {build,shell}" with nom if possible --- nix/homeModules/common/fish/functions/nix.fish | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 nix/homeModules/common/fish/functions/nix.fish diff --git a/nix/homeModules/common/fish/functions/nix.fish b/nix/homeModules/common/fish/functions/nix.fish new file mode 100644 index 00000000..488220e9 --- /dev/null +++ b/nix/homeModules/common/fish/functions/nix.fish @@ -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 +