aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-10-27 13:27:03 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-10-27 13:27:03 +0300
commitf722f3d1cebc757f0d32b323bb744d40040a2909 (patch)
tree1935e17418582caf043ab5f16487f3c49d177512 /internal/p10k.zsh
parent6096321f611a4850deeb9b3d6726112621924086 (diff)
add direnv segment; fixes 291
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