summaryrefslogtreecommitdiff
path: root/zscripts
diff options
context:
space:
mode:
authorTim Keller <tjkeller.xyz>2025-01-12 16:31:11 -0600
committerTim Keller <tjkeller.xyz>2025-01-12 16:31:11 -0600
commitd9b468e3bc68fc931c45e831344bc4d8929b21ee (patch)
tree4cf86d52a7facf2e471f71136b49bb3a7e52449b /zscripts
parent62b4369b3aeea290e53a4d0b2863f31b5355f983 (diff)
downloadzsh-d9b468e3bc68fc931c45e831344bc4d8929b21ee.tar.xz
zsh-d9b468e3bc68fc931c45e831344bc4d8929b21ee.zip
nix-shell zscript
Diffstat (limited to 'zscripts')
-rw-r--r--zscripts/nixshell.zsh9
1 files changed, 9 insertions, 0 deletions
diff --git a/zscripts/nixshell.zsh b/zscripts/nixshell.zsh
new file mode 100644
index 0000000..3cd1206
--- /dev/null
+++ b/zscripts/nixshell.zsh
@@ -0,0 +1,9 @@
+#!/usr/bin/env zsh
+
+# Make nix shell run zsh
+alias nix-shell="nix-shell --command zsh"
+
+# Add nix-shell prefix to prompt in the same style as python venv
+if [ -n "$IN_NIX_SHELL" ]; then
+ PS1PREFIX="(nix-shell) "
+fi