summaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh6
1 files changed, 6 insertions, 0 deletions
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