File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 157157 defaultZshCompFpathLoading = mkOption {
158158 description = mdDoc "The cardano-parts default zsh completion fpath loading hook." ;
159159 default = globalDefault isGlobal ( packages : ''
160+ # Direnv use prevents the dynamic loading of zsh completions,
161+ # requiring a zsh "reentry" upon arriving in the devShell.
162+ # (ie: `zsh` or `exec zsh -l`, etc.
163+ #
164+ # If using plain nix develop, zsh "reentry" is not required.
160165 export ZDOTDIR=$PWD/.direnv-zsh
161166 mkdir -p "$ZDOTDIR"
162167 rm -f "$ZDOTDIR/.zcompdump"*
185190 echo "To return to your normal zsh without devShell fpath modifications, run \"zsh-base\" before leaving the repo directory,"
186191 echo "otherwise, close and open a new zsh shell to avoid lingering devShell command completions."
187192 echo
193+ echo "To re-enter the completions in this devShell with direnv, run \"exec zsh -l\" or similar."
194+ echo
188195 EOF
189196 '' ) ;
190197 } ;
You can’t perform that action at this time.
0 commit comments