aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@gmail.com>2014-12-05 05:52:41 +0300
committerBen Hilburn <bhilburn@gmail.com>2015-01-29 07:59:22 +0300
commit595d7a55c6c95a323e7e1da8dc2701a19a0b3ac0 (patch)
tree0ac41c3a788ac8c048a92320fe3d6ac53022c8fe /powerlevel9k.zsh-theme
parentd9bfce94f44761a673c7b3ca5befe6730d06a81c (diff)
theme seems to be working except for some annoying spacing issues
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rw-r--r--powerlevel9k.zsh-theme14
1 files changed, 7 insertions, 7 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 77d5cf6a..9e784f05 100644
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -176,22 +176,23 @@ prompt_status() {
[[ -n "$symbols" ]] && left_prompt_segment black default "$symbols"
}
+# Same thing as 'status' above, except for the right-side prompt
rprompt_status() {
local symbols
symbols=()
- [[ $RETVAL -ne 0 ]] && symbols+="%{%F{red}%}✘" || symbols+="%{%F{green}%}✓"
+ [[ $RETVAL -ne 0 ]] && symbols+="%{%F{red}%}%? ↵" || symbols+="%{%F{green}%}✓"
[[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}⚡"
[[ $(jobs -l | wc -l) -gt 0 ]] && symbols+="%{%F{cyan}%}⚙"
[[ -n "$symbols" ]] && right_prompt_segment black default "$symbols"
}
-# System time of the prompt print-out
+# System time
prompt_time() {
right_prompt_segment white black '%D{%H:%M:%S} '
}
-# Command number (in current history)
+# Command number (in local history)
prompt_history() {
right_prompt_segment blue black '%h'
}
@@ -201,24 +202,23 @@ prompt_rvm() {
local rvm_prompt
rvm_prompt=`rvm-prompt`
if [ "$rvm_prompt" != "" ]; then
- right_prompt_segment "240" white "$rvm_prompt "
+ left_prompt_segment "240" white "$rvm_prompt "
fi
}
## Main prompt
build_left_prompt() {
- RETVAL=$?
- prompt_status
prompt_virtualenv
prompt_context
prompt_dir
prompt_git
prompt_hg
+ #prompt_rvm
left_prompt_end
}
build_right_prompt() {
- #prompt_rvm
+ RETVAL=$?
rprompt_status
prompt_history
prompt_time