Skip to content

Commit

Permalink
Optimize the ys.zsh-theme make it simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmood committed Mar 24, 2016
1 parent 8ac1859 commit 9cc3e8b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions themes/ys.zsh-theme
Expand Up @@ -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%} \
Expand All @@ -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%}"

0 comments on commit 9cc3e8b

Please sign in to comment.