envrc-rs icon indicating copy to clipboard operation
envrc-rs copied to clipboard

Add Zsh support

Open chenyao36 opened this issue 1 year ago • 1 comments

Important diff to support zsh:

-if [ "$(jobs)" == "" ]
+if [[ "$(jobs)" = "" ]]

-    ENVRC_LOAD="{rc_found}" ENVRC_PPID=$$ $BASH
+    ENVRC_LOAD="{rc_found}" ENVRC_PPID=$$ $SHELL

Other diff:

  • change: envrc bash -> envrc hook;
  • new: envrc init bash and envrc init zsh;
  • refactor: cargo fmt; clap 2 builder -> clap 4 derive;

chenyao36 avatar Feb 05 '24 08:02 chenyao36

This PR breaks existing config. I don't want to merge it.

roxma avatar Jul 11 '24 08:07 roxma