summaryrefslogtreecommitdiff
path: root/config/lean.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-07-17 01:55:34 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-07-17 01:55:34 +0300
commitef041b4364a481f7e65237f93d71bdb1b647e000 (patch)
tree5c0a7d5fdd7b65a106d3847a3a74bd622859dc7d /config/lean.zsh
parent30c160926da5e906d2768092888676e24adbf16f (diff)
make right prompt multiline; add public_ip
Diffstat (limited to 'config/lean.zsh')
-rw-r--r--config/lean.zsh9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/lean.zsh b/config/lean.zsh
index 6e59ce5b..52759a5a 100644
--- a/config/lean.zsh
+++ b/config/lean.zsh
@@ -14,6 +14,7 @@ fi
# Line #1
dir # current directory
vcs # git status
+
# Line #2
newline
prompt_char # prompt symbol
@@ -24,6 +25,7 @@ fi
# automatically hidden when the input line reaches it. Right prompt above the
# last prompt line gets hidden if it would overlap with left prompt.
typeset -ga POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
+ # Line #1
status # exit code of the last command
command_execution_time # duration of the last command
background_jobs # presence of background jobs
@@ -36,6 +38,10 @@ fi
# node_version # node.js version
# kubecontext # current kubernetes context (https://kubernetes.io/)
context # user@host
+
+ # Line #2
+ newline
+ # public_ip # public IP address
# time # current time
)
@@ -241,6 +247,9 @@ fi
# Show the trailing "/default" in kubernetes context.
typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_DEFAULT_NAMESPACE=true
+ # Public IP color.
+ typeset -g POWERLEVEL9K_PUBLIC_IP_FOREGROUND=144
+
# Current time color.
typeset -g POWERLEVEL9K_TIME_FOREGROUND=66
# Format for the current time: 09:51:02. See `man 3 strftime`.