summaryrefslogtreecommitdiff
path: root/zscripts/nixshell.zsh
blob: dfc884a0699dd27a277e7d19e84796e3a7fccd6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env zsh

# Make nix shell run zsh
alias nix-shell="nix-shell --command zsh"

if [ -n "$IN_NIX_SHELL" ]; then
	# Export shell as zsh instead of bash
	export SHELL=zsh

	# Add nix-shell prefix to prompt in the same style as python venv
	PS1PREFIX="(nix-shell) "
fi