From 024fe10745c26283e5af06f2978f3d75b717d3f6 Mon Sep 17 00:00:00 2001 From: Steph Date: Wed, 11 Dec 2024 22:51:24 +0100 Subject: [PATCH] update --- programs/bash.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/programs/bash.nix b/programs/bash.nix index b56be27..b410981 100644 --- a/programs/bash.nix +++ b/programs/bash.nix @@ -26,6 +26,11 @@ 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}" + } '' # On mac we have to import brew