Skip to content

Instantly share code, notes, and snippets.

View jtszalay's full-sized avatar

James Szalay jtszalay

  • Louisville, Kentucky
  • 05:35 (UTC -04:00)
View GitHub Profile
@jtszalay
jtszalay / nixenv.zsh
Created March 14, 2024 17:45 — forked from dramforever/nixenv.zsh
nixenv
declare -A nixenv_paths
nadd() {
setopt local_options err_return pipefail
local out out_paths
for installable in "$@"; do
local with_outputs="$installable^*"
if [[ "$installable" = *"^"* ]]; then
with_outputs="$installable"
fi