summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-09-12 21:57:53 -0500
committerTim Keller <tjk@tjkeller.xyz>2025-09-12 21:57:53 -0500
commit32713b145efdd5b8d0af98b7f739cb548de4e933 (patch)
tree99a59a3b436fcd80d864bd2b2335831c76cde5a8
parentb81ab140dab23a4d5c3a87f150be625c9c28eb2b (diff)
downloadzsh-32713b145efdd5b8d0af98b7f739cb548de4e933.tar.xz
zsh-32713b145efdd5b8d0af98b7f739cb548de4e933.zip
fix nix-shell-py
-rwxr-xr-xzscripts/nixshell.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/zscripts/nixshell.zsh b/zscripts/nixshell.zsh
index 16d0ee3..de5e65a 100755
--- a/zscripts/nixshell.zsh
+++ b/zscripts/nixshell.zsh
@@ -16,9 +16,9 @@ fi
function nix-shell-py() {
if [ ! -f ./requirements.txt ]; then
echo "No requirements.txt file was found in the current directory. Exiting..." 1>&2
- exit 1
+ return 1
fi
requirements="$(sed 's/#.*//;s/^/python3Packages./' ./requirements.txt | tr -s '\n' ' ')"
- nix-shell -p ${=requirements}
+ nix-shell -p ${=requirements} $@
}