Load Direnv state before rendering instant prompt, as recommended
This commit is contained in:
parent
17359d1fd0
commit
60f637b609
1 changed files with 4 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
# For accurate instant prompt from Powerlevel10k, we need to load up the
|
||||
# correct environment from direnv first.
|
||||
(( ${+commands[direnv]} )) && emulate zsh -c "$(direnv export zsh)"
|
||||
|
||||
# Enable Powerlevel10k instant prompt. Should stay close to the top of zshrc.
|
||||
# Initialization code that may require console input (password prompts, [y/n]
|
||||
# confirmations, etc.) must go above this block; everything else may go below.
|
||||
|
|
Loading…
Reference in a new issue