ohmyzsh/plugins/direnv-p10k
2025-01-27 13:58:03 -06:00
..
direnv-p10k.plugin.zsh feat(direnv-p10k): Add a new plugin for direnv which specifically disables the precmd_functions hook for powerlevel10k theme users to avoid the instant prompt warning when starting a shell in a directory where a .envrc is both located and direnv allowed 2025-01-27 13:58:03 -06:00
README.md feat(direnv-p10k): Add a new plugin for direnv which specifically disables the precmd_functions hook for powerlevel10k theme users to avoid the instant prompt warning when starting a shell in a directory where a .envrc is both located and direnv allowed 2025-01-27 13:58:03 -06:00

direnv plugin

This plugin creates the Direnv hook.

This hook is tweaked to prevent issues with the powerlevel10k theme's instant prompt feature by not adding the direnv hook to precmd_functions

To use it, add direnv-p10k to the plugins array in your zshrc file:

plugins=(... direnv-p10k)

Requirements

In order to make this work, you will need to have direnv installed.

More info on the usage and install: https://github.com/direnv/direnv