diff options
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | powerlevel9k.zsh-theme | 11 |
2 files changed, 12 insertions, 3 deletions
@@ -2,7 +2,7 @@ This is a theme for [Oh-My-Zsh](https://github.com/robbyrussell/oh-my-zsh). This theme uses [Powerline Fonts](https://github.com/Lokaltog/powerline-fonts), thus -giving you the most bad-ass terminal styling in the universe (as of 2015 C.E.). +giving you the most epic terminal styling in the universe (as of 2015 C.E.). Look like a bad-ass. Impress everyone in 'Screenshot Your Desktop' threads. Use powerlevel9k. @@ -11,6 +11,8 @@ information. ### Features +* Mercurial support is now in development Check out the `mercurial_support` branch! + * Shows lots of information about Git repositories, including: * branch / tag name * current action status (rebasing, merging, etc.,) diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 4a6f5655..fd23de10 100644 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -60,9 +60,9 @@ left_prompt_segment() { [[ -n $1 ]] && bg="%K{$1}" || bg="%k" [[ -n $2 ]] && fg="%F{$2}" || fg="%f" if [[ $CURRENT_BG != 'NONE' && $1 != $CURRENT_BG ]]; then - echo -n " %{$bg%F{$CURRENT_BG}%}$LEFT_SEGMENT_SEPARATOR%{$fg%} " + echo -n "%{$bg%F{$CURRENT_BG}%}$LEFT_SEGMENT_SEPARATOR%{$fg%} " else - echo -n " %{$bg%}%{$fg%} " + echo -n "%{$bg%}%{$fg%} " fi CURRENT_BG=$1 [[ -n $3 ]] && echo -n $3 @@ -242,6 +242,13 @@ prompt_rvm() { fi } +# rbenv information +prompt_rbenv() { + if [[ -n "$RBENV_VERSION" ]]; then + $1_prompt_segment red black "$RBENV_VERSION" + fi +} + # Main prompt build_left_prompt() { if (( ${#POWERLEVEL9K_LEFT_PROMPT_ELEMENTS} == 0 )); then |