Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
9280f2c8
Commit
9280f2c8
authored
Mar 25, 2016
by
Marc Cornellà
Browse files
Merge pull request #4940 from ysmood/optimize-ys-theme
Optimize the ys.zsh-theme: make it simpler
parents
186f009e
9cc3e8bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
themes/ys.zsh-theme
View file @
9280f2c8
...
@@ -35,16 +35,16 @@ ys_hg_prompt_info() {
...
@@ -35,16 +35,16 @@ ys_hg_prompt_info() {
fi
fi
}
}
local exit_code="%(?,
%?,
%{$fg[red]%}%?%{$reset_color%})"
local exit_code="%(?,
,C:
%{$fg[red]%}%?%{$reset_color%})"
# Prompt format:
# 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
# $ COMMAND
#
#
# For example:
# 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="
PROMPT="
%{$terminfo[bold]$fg[blue]%}#%{$reset_color%} \
%{$terminfo[bold]$fg[blue]%}#%{$reset_color%} \
...
@@ -56,5 +56,5 @@ PROMPT="
...
@@ -56,5 +56,5 @@ PROMPT="
${hg_info}\
${hg_info}\
${git_info}\
${git_info}\
\
\
%{$fg[white]%}[%*]
tty:%l L:%L N:%i C:
$exit_code
%{$fg[white]%}[%*] $exit_code
%{$terminfo[bold]$fg[red]%}$ %{$reset_color%}"
%{$terminfo[bold]$fg[red]%}$ %{$reset_color%}"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment