summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2016-03-25 00:06:31 +0100
committerMarc Cornellà <marc.cornella@live.com>2016-03-25 00:06:31 +0100
commit9280f2c874b1126ee9399c353d1e0184fd39b4e4 (patch)
tree1a27a29fd1e8c7b32b2e80a1c34a1bb292cc80cc /themes
parent186f009ecc2362bb8c44eacfdd0adaa27f6b866a (diff)
parent9cc3e8bf29f08f89279ee1e2e86f89759c02ad4f (diff)
downloadzsh-9280f2c874b1126ee9399c353d1e0184fd39b4e4.tar.gz
zsh-9280f2c874b1126ee9399c353d1e0184fd39b4e4.tar.bz2
zsh-9280f2c874b1126ee9399c353d1e0184fd39b4e4.zip
Merge pull request #4940 from ysmood/optimize-ys-theme
Optimize the ys.zsh-theme: make it simpler
Diffstat (limited to 'themes')
-rw-r--r--themes/ys.zsh-theme8
1 files changed, 4 insertions, 4 deletions
diff --git a/themes/ys.zsh-theme b/themes/ys.zsh-theme
index 737b506be..89d5355dc 100644
--- a/themes/ys.zsh-theme
+++ b/themes/ys.zsh-theme
@@ -35,16 +35,16 @@ ys_hg_prompt_info() {
fi
}
-local exit_code="%(?,%?,%{$fg[red]%}%?%{$reset_color%})"
+local exit_code="%(?,,C:%{$fg[red]%}%?%{$reset_color%})"
# Prompt format:
#
-# PRIVILEGES USER @ MACHINE in DIRECTORY on git:BRANCH STATE [TIME] tty:$TTY L:$SHELL_LEVEL N:LINE_NUM C:LAST_EXIT_CODE
+# PRIVILEGES USER @ MACHINE in DIRECTORY on git:BRANCH STATE [TIME] C:LAST_EXIT_CODE
# $ COMMAND
#
# For example:
#
-# % ys @ ys-mbp in ~/.oh-my-zsh on git:master x [21:47:42] tty:s000 L:1 N:12 C:0
+# % ys @ ys-mbp in ~/.oh-my-zsh on git:master x [21:47:42] C:0
# $
PROMPT="
%{$terminfo[bold]$fg[blue]%}#%{$reset_color%} \
@@ -56,5 +56,5 @@ PROMPT="
${hg_info}\
${git_info}\
\
-%{$fg[white]%}[%*] tty:%l L:%L N:%i C:$exit_code
+%{$fg[white]%}[%*] $exit_code
%{$terminfo[bold]$fg[red]%}$ %{$reset_color%}"