This commit is contained in:
Steph 2024-12-11 23:00:26 +01:00
parent 7bdccfa0f0
commit 68834e7ea3

View File

@ -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;
}
''