aboutsummaryrefslogtreecommitdiffstats
path: root/devi.zsh-theme
diff options
context:
space:
mode:
Diffstat (limited to 'devi.zsh-theme')
-rw-r--r--devi.zsh-theme10
1 files changed, 5 insertions, 5 deletions
diff --git a/devi.zsh-theme b/devi.zsh-theme
index 49d50db..c686909 100644
--- a/devi.zsh-theme
+++ b/devi.zsh-theme
@@ -160,7 +160,7 @@ add-zsh-hook precmd steeef_precmd
tsocks_on() {
if echo $LD_PRELOAD | grep libtsocks > /dev/null 2>&1; then
# echo -ne "\x1b[38;5;0m\x1b[48;5;22m$reset_color\x1b[38;5;22m"
- echo "%K{22}%F{0}$reset_color%F{22}"
+ echo "%K{22}%F{0}%K{0}%F{22}"
else
echo "$reset_color"
;
@@ -169,7 +169,7 @@ tsocks_on() {
sudo_query() {
if sudo -nv > /dev/null 2>&1; then
- echo "%K{33}%F{0}%K{0}%F{33} "
+ echo "%K{33}%F{0}%K{0}%F{33}"
else
echo "$reset_color"
fi
@@ -194,7 +194,7 @@ dir_writeable() {
if [ -w $(pwd) ]; then
echo "$reset_color"
else
- echo " %K{196}%F{0}$reset_color%F{196}"
+ echo " %K{196}%F{0}%K{0}%F{196}"
fi
}
@@ -286,9 +286,9 @@ getterminal() {
rbq_info_msg=""
-PS1=$'%{$reset_color%}$(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%}'
+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%}'
PS2=$''
-PS3=$'\n%{$randomblue%}--➜%{$reset_color%} '
+PS3=$'\n%{$randomblue%}--➜%K{0}%F{15}'
get_prompt_len() {
local zero='%([BSUbfksu]|([FK]|){*})'
local FOOLENGTH=${#${(S%%)PS1//$~zero/}}