mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-16 02:27:03 +01:00
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
Signed-off-by: Thomas D. Spear <thomas.spear@wcgclinical.com>
This commit is contained in:
parent
ce9a4a0196
commit
ce485f155c
2 changed files with 32 additions and 0 deletions
17
plugins/direnv-p10k/README.md
Normal file
17
plugins/direnv-p10k/README.md
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# direnv plugin
|
||||
|
||||
This plugin creates the [Direnv](https://direnv.net/) 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:
|
||||
|
||||
```zsh
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue