diff options
author | terminaldweller <thabogre@gmail.com> | 2021-10-31 01:44:00 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-10-31 01:44:00 +0000 |
commit | 965a52ac2b20d0177719c86dc2a1d18903e9a017 (patch) | |
tree | 0ffdac57d934b761ec9230b5368cdf289d3fdd62 /devi.zsh-theme | |
parent | opewrt,haproxy,nginx,ejabberd,.... (diff) | |
download | scripts-965a52ac2b20d0177719c86dc2a1d18903e9a017.tar.gz scripts-965a52ac2b20d0177719c86dc2a1d18903e9a017.zip |
updates
Diffstat (limited to '')
-rw-r--r-- | devi.zsh-theme | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/devi.zsh-theme b/devi.zsh-theme index 9926600..f64505e 100644 --- a/devi.zsh-theme +++ b/devi.zsh-theme @@ -58,6 +58,7 @@ if [[ $TERM = *256color* || $TERM = *rxvt* ]]; then veryorange="%F{202}" yablue="%F{32}" yagreen="%F{34}" + babyblue="%F{39}" else turquoise="$fg[cyan]" orange="$fg[yellow]" @@ -161,6 +162,11 @@ node_version() { echo " <$version>" } +ruby_version() { + local version=$(rbenv version | gawk '{print $1}') + echo " <$version>" +} + sudo_query() { sudo -nv > /dev/null 2>&1 if [[ $? == 0 ]]; then @@ -257,7 +263,7 @@ rebuildquery() { } -PS1=$'%{$new2%}$(sudo_query)%{$reset_color%}%{$swampgreen%}%n%{$reset_color%} on %{$purblue%}%M%{$reset_color%} in %{$yagreen%}$(pwd_shortened)%{$reset_color%} at %{$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%}%{$sneakyc%}$(sneaky)%{$reset_color%}%{$new%}$(rebuildquery)%{$reset_color%} %{$someblue%}<$ZSH_KUBECTL_PROMPT>%{$reset_color%}%{$batred%}$(dir_writeable)%{$reset_color%}' +PS1=$'%{$new2%}$(sudo_query)%{$reset_color%}%{$swampgreen%}%n%{$reset_color%} on %{$purblue%}%M%{$reset_color%} in %{$yagreen%}$(pwd_shortened)%{$reset_color%} at %{$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%}$(rebuildquery)%{$reset_color%} %{$someblue%}<$ZSH_KUBECTL_PROMPT>%{$reset_color%}%{$batred%}$(dir_writeable)%{$reset_color%}' PS2=$'' PS3=$'\n%{$limblue%}--➜%{$reset_color%}' get_prompt_len() { |