From 68834e7ea3a2b437c04a88ae9357d586bfbe6451 Mon Sep 17 00:00:00 2001 From: Steph Date: Wed, 11 Dec 2024 23:00:26 +0100 Subject: [PATCH] update --- programs/bash.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/programs/bash.nix b/programs/bash.nix index b410981..69b726d 100644 --- a/programs/bash.nix +++ b/programs/bash.nix @@ -27,9 +27,10 @@ export PS1="[\t \[\e[32m\]\u\[\e[m\]\[\e[32m\]@\[\e[m\]\[\e[32m\]\h\[\e[m\]]"'$SHELL_PREFIX'" \[\e[36m\]"'$TRIMMED_PWD'"\[\e[m\] \$ " fi - run() { - set -- "$${@/#/nixpkgs\#}" - nix run "$${@/%/y}" + run() { + cmd="nix run"; + for arg in "$@"; do cmd="$cmd nixpkgs#$arg"; done; + eval $cmd; } ''