diff options
Diffstat (limited to 'dot_config/zsh/functions/prompt_zstyle_setup')
| -rw-r--r-- | dot_config/zsh/functions/prompt_zstyle_setup | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/dot_config/zsh/functions/prompt_zstyle_setup b/dot_config/zsh/functions/prompt_zstyle_setup index 256464c..1269575 100644 --- a/dot_config/zsh/functions/prompt_zstyle_setup +++ b/dot_config/zsh/functions/prompt_zstyle_setup @@ -1,3 +1,4 @@ +# -*- mode: sh -*- # vim: ft=zsh # a prompt entirely configured by zstyle, usable by default # make sure you configure vcs_info! @@ -57,9 +58,18 @@ prompt_zstyle_preset() { zstyle :prompt:zstyle:parts return '%(0?.. %F{red}[%?]%f)' zstyle :prompt:zstyle:parts separator '%(!.#.>)' zstyle :prompt:zstyle:parts vcsinfo \ - '${vcs_info_msg_0_:+ $vcs_info_msg_0_}' + '${vcs_info_msg_0_:+ $vcs_info_msg_0_}' zstyle :prompt:zstyle ps1 \ - login ' ' pwd vcsinfo return separator ' ' + login ' ' pwd vcsinfo return separator ' ' + ;; + grml) + prompt_zstyle_reset + zstyle :prompt:zstyle:parts login '%B%(!.%F{red}.%F{blue})%n%f%b@%m' + zstyle :prompt:zstyle:parts return '%(0?..%F{red}%?%f )' + zstyle :prompt:zstyle:parts vcsinfo \ + '${vcs_info_msg_0_:+ $vcs_info_msg_0_}' + zstyle :prompt:zstyle ps1 \ + return login ' ' pwd vcsinfo ' ' separator ' ' ;; esac } |
