aboutsummaryrefslogtreecommitdiff
path: root/config/p10k-lean.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 /config/p10k-lean.zsh
parent6096321f611a4850deeb9b3d6726112621924086 (diff)
add direnv segment; fixes 291
Diffstat (limited to 'config/p10k-lean.zsh')
-rw-r--r--config/p10k-lean.zsh7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh
index 43479409..e06eb555 100644
--- a/config/p10k-lean.zsh
+++ b/config/p10k-lean.zsh
@@ -44,6 +44,7 @@
status # exit code of the last command
command_execution_time # duration of the last command
background_jobs # presence of background jobs
+ direnv # direnv status (https://direnv.net/)
virtualenv # python virtual environment (https://docs.python.org/3/library/venv.html)
anaconda # conda environment (https://conda.io/)
pyenv # python environment (https://github.com/pyenv/pyenv)
@@ -470,6 +471,12 @@
# Icon to show when there are background jobs.
typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION='⇶'
+ #######################[ direnv: direnv status (https://direnv.net/) ]########################
+ # Direnv color.
+ typeset -g POWERLEVEL9K_DIRENV_FOREGROUND=178
+ # Icon to show when direnv is active.
+ typeset -g POWERLEVEL9K_DIRENV_VISUAL_IDENTIFIER_EXPANSION='${P9K_VISUAL_IDENTIFIER}'
+
##########[ nordvpn: nordvpn connection status, linux only (https://nordvpn.com/) ]###########
# NordVPN connection indicator color.
typeset -g POWERLEVEL9K_NORDVPN_FOREGROUND=39