aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Hilburn <ben.hilburn@ettus.com>2014-12-05 04:35:12 +0300
committerBen Hilburn <bhilburn@gmail.com>2015-01-29 07:59:22 +0300
commitd9bfce94f44761a673c7b3ca5befe6730d06a81c (patch)
treea58eb95f649e30058d21a1248db429ac96184335
parentd78373cdbdd14758457b53b19a6c03ffb9ff0f15 (diff)
working on return status
-rw-r--r--powerlevel9k.zsh-theme8
1 files changed, 7 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 0e229386..77d5cf6a 100644
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -179,7 +179,7 @@ prompt_status() {
rprompt_status() {
local symbols
symbols=()
- [[ $RETVAL -ne 0 ]] && symbols+="%{%F{red}%}✘" || symbols+="%{%F{red}%}y"
+ [[ $RETVAL -ne 0 ]] && symbols+="%{%F{red}%}✘" || symbols+="%{%F{green}%}✓"
[[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}⚡"
[[ $(jobs -l | wc -l) -gt 0 ]] && symbols+="%{%F{cyan}%}⚙"
@@ -191,6 +191,11 @@ prompt_time() {
right_prompt_segment white black '%D{%H:%M:%S} '
}
+# Command number (in current history)
+prompt_history() {
+ right_prompt_segment blue black '%h'
+}
+
# Ruby Version Manager information
prompt_rvm() {
local rvm_prompt
@@ -215,6 +220,7 @@ build_left_prompt() {
build_right_prompt() {
#prompt_rvm
rprompt_status
+ prompt_history
prompt_time
}