# Run a command if known, otherwise run it with nix def , [cmd: string, ...args: string] { if (not (which $cmd | is-empty)) { ^$cmd ...$args return } ^nix run $"nixpkgs#($cmd)" -- ...$args }