From f722f3d1cebc757f0d32b323bb744d40040a2909 Mon Sep 17 00:00:00 2001 From: romkatv Date: Sun, 27 Oct 2019 11:27:03 +0100 Subject: add direnv segment; fixes 291 --- internal/p10k.zsh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'internal/p10k.zsh') diff --git a/internal/p10k.zsh b/internal/p10k.zsh index fd9b41de..2b924a28 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -3347,6 +3347,12 @@ function prompt_proxy() { _p9k_prompt_segment $0 $_p9k_color1 blue PROXY_ICON 0 '' "$p[1]" } +function prompt_direnv() { + _p9k_prompt_segment $0 $_p9k_color1 yellow DIRENV_ICON 0 '$DIRENV_DIR' '' +} + +function instant_prompt_direnv() { prompt_direnv; } + _p9k_preexec() { if (( $+_p9k_real_zle_rprompt_indent )); then if [[ -n $_p9k_real_zle_rprompt_indent ]]; then -- cgit v1.2.3