Skip to content

goolord/simple-zsh-nix-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple ZSH nix shell

  • adds an icon to $RPS1 when you are in a nix shell
  • makes nix shells drop you into zsh by default
  • when you exit from the zsh nix shell, you will drop back into the invoking zsh shell, so if you need to go into bash for whatver reason invoke bash from the zsh shell.

image

install

source simple-zsh-nix-shell.zsh manually or with a plugin manager

add this to your ~/.bashrc to land in zsh your first time entering bash in a nix shell. this is considerably less hacky than a wrapper around nix/nix-shell imo

if [ ! -z ${SIMPLE_ZSH_NIX_SHELL_BASH+x} ] ;
  then source $SIMPLE_ZSH_NIX_SHELL_BASH
fi

About

zsh plugin that lets you use zsh in nix shells

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages