dotnix @main -
refs -
log -
-
https://git.jolheiser.com/dotnix.git
Signature
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmX7I6QACgkQuFOtpdp7
v3q2yA/+IEZvsV1/KdiB6wA69fCo6WMTLlKMQDdHxSICHAMFff7yJ9DgsMvsfzw+
pj2eR1z+wHVQBRsDFDgsNb0CSlRVQVK7V1bVLELyTn6ix+09MwpxTdVdQPmgRUtV
fkS5W9x288v1BxE8vD0djBPRrtw+VahOPW06LBQWXw34oXO/Oov0PxlZ+VDkVghg
mu8rTjDVovyjxU3ui1UxdZCsuHpI6ODeL9Xhe8rMKlbb6ZtUI3lgDRqMHF9p1mY6
Fe4NUePuKzTF3fFr0rp51a0UH8P0XX3ZIcJ72NMQDhgvQwyCGpSYMUCfa9FVqoT+
EdY1vjc/hh8NRV2ZbirlqiEUdpzYlx6mM0Rs6cGRDeAohW5pOqmmc0d9k2o+Y79n
w09QnngLMbYroKporZigd4oAgEuA0k+yKmmtOA++5HmKvHtLFsXCHRTcQHoxY648
6z3VFnf+h0k8yEfL5UJOQ5xmpPZQMVyP+BEevIgKITxRibyctPhWGS1VF9XOOdWa
+hHWqUaSIyibPPdu4/A8Qn5OGW+c4auo5HEI9IMYWbrQUzPdvhDHlQ4ADQekdsiK
ftOdYGRVefgev3FqBGhlRz+ocWSgUCP7eBtlvAOjB1Wu1tXAp8LsWNhlHo7EixSb
Vgk/5iWpTZ4tm9D79ywjO1Z6sjDbGeWa53PngDw52eWha5BZsgI=
=NBbz
-----END PGP SIGNATURE-----
diff --git a/apps/nogui/nushell/jolheiser.nu b/apps/nogui/nushell/jolheiser.nu
index d7eb6fa59e899cf6604445351ecdfd653a2c0234..c6a7d3dbcf13d71a8f5837999f59d898ba23137b 100644
--- a/apps/nogui/nushell/jolheiser.nu
+++ b/apps/nogui/nushell/jolheiser.nu
@@ -69,6 +69,18 @@ rm -rf $tmp
echo 'nixpkgs.lib.fileContents ./go.mod.sri'
}
+# Run a command if known, otherwise run it with nix
+def , [
+ cmd: string # The command to run
+ ...args: string # Command arguments; all flags MUST be quoted
+ ] {
+ if (not (which $cmd | is-empty)) {
+ ^$cmd ...$args
+ return
+ }
+ ^nix run $"nixpkgs#($cmd)" -- ...$args
+}
+
## Other ##
$env.EDITOR = hx
$env.config = ($env.config | upsert "shell_integration" ("WEZTERM_PANE" not-in $env and "SSH_CLIENT" not-in $env))