From d9b468e3bc68fc931c45e831344bc4d8929b21ee Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Sun, 12 Jan 2025 16:31:11 -0600 Subject: nix-shell zscript --- zscripts/nixshell.zsh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 zscripts/nixshell.zsh (limited to 'zscripts') 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 -- cgit v1.2.3