aboutsummaryrefslogtreecommitdiffstats
path: root/devi.zsh-theme
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2023-03-10 10:53:48 +0000
committerterminaldweller <thabogre@gmail.com>2023-03-10 10:53:48 +0000
commite9a4f9e81a55e8ba5264e6b2b524dc74bf4ec8e8 (patch)
treed4c7a67e38e4fa2e3a3aba26df1d82e97f1d319d /devi.zsh-theme
parentupdate (diff)
downloadscripts-e9a4f9e81a55e8ba5264e6b2b524dc74bf4ec8e8.tar.gz
scripts-e9a4f9e81a55e8ba5264e6b2b524dc74bf4ec8e8.zip
updates
Diffstat (limited to 'devi.zsh-theme')
-rw-r--r--devi.zsh-theme11
1 files changed, 10 insertions, 1 deletions
diff --git a/devi.zsh-theme b/devi.zsh-theme
index 02e2167..72c1508 100644
--- a/devi.zsh-theme
+++ b/devi.zsh-theme
@@ -63,6 +63,7 @@ if [[ $TERM = *256color* || $TERM = *rxvt* ]]; then
somegreen="%F{22}"
randomblue="%F{26}"
yaorange="%F{67}"
+ greeniegreen="%F{35}"
else
turquoise="$fg[cyan]"
orange="$fg[yellow]"
@@ -286,7 +287,15 @@ getterminal() {
rbq_info_msg=""
-PS1=$'$(dir_writeable)$(tsocks_on)$(sudo_query)%{$reset_color%} %{$yablue%}%n@%M:$(getterminal)%{$reset_color%} %{$yagreen%}$(pwd_shortened)%{$reset_color%} %{$muckgreen%}$(time_function)%{$reset_color%}$vcs_info_msg_0_%{$limblue%}%{$gnew%}$(gitadditions)%{$gnew2%}$(gitdeletions)%{$reset_color%}%{$deeppink%}$(virtualenv_info)%{$reset_color%}%{$teal%}$(node_version)%{$reset_color%}%{$gover%}$(goversion)%{$reset_color%}%{$rust%}$(rustversion)%{$reset_color%}%{$babyblue%}$(ruby_version)%{$reset_color%}%{$sneakyc%}$(sneaky)%{$reset_color%}%{$new%}$rbq_info_msg%{$reset_color%} $(getkubernetesinfo)%{$reset_color%}'
+meson_env() {
+ if [[ -n "${MESON_PROJECT_NAME-}" ]];then
+ echo " [${MESON_PROJECT_NAME}]"
+ else
+ :
+ fi
+}
+
+PS1=$'$(dir_writeable)$(tsocks_on)$(sudo_query)%{$reset_color%} %{$yablue%}%n@%M:$(getterminal)%{$reset_color%} %{$yagreen%}$(pwd_shortened)%{$reset_color%} %{$muckgreen%}$(time_function)%{$reset_color%}$vcs_info_msg_0_%{$limblue%}%{$gnew%}$(gitadditions)%{$gnew2%}$(gitdeletions)%{$reset_color%}%{$deeppink%}$(virtualenv_info)%{$reset_color%}%{$greeniegreen%}$(meson_env)%{$reset_color%}%{$teal%}$(node_version)%{$reset_color%}%{$gover%}$(goversion)%{$reset_color%}%{$rust%}$(rustversion)%{$reset_color%}%{$babyblue%}$(ruby_version)%{$reset_color%}%{$sneakyc%}$(sneaky)%{$reset_color%}%{$new%}$rbq_info_msg%{$reset_color%} $(getkubernetesinfo)%{$reset_color%}'
PS2=$''
PS3=$'\n%{$randomblue%}--➜%K{0}%F{15}'
get_prompt_len() {