Skip to content

goolord/simple-zsh-nix-shell

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

it is necessary to install both plugins to achieve the full functionality of this plugin

source simple-zsh-nix-shell.zsh manually in $ZDOTDIR/.zshrc, or with a zsh plugin manager this plugin sets $RPS1 to show that you're in a nix shell when $IN_NIX_SHELL is defined, and exports the script to be run by the bash plugin

source simple-zsh-nix-shell.bash manually in $HOME/.bashrc, or with a bash plugin manager this plugin drops you into a zsh shell when you first enter a nix shell

About

zsh plugin that lets you use zsh in nix shells

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages