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 +