mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
The two-lines theme has been added
This commit is contained in:
parent
8c45b73918
commit
4305f85fde
1 changed files with 28 additions and 0 deletions
28
themes/two-lines.zsh-theme
Normal file
28
themes/two-lines.zsh-theme
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
local magenta=$fg[magenta]
|
||||||
|
local blue=$fg[blue]
|
||||||
|
local red=$fg[red]
|
||||||
|
local green=$fg[green]
|
||||||
|
|
||||||
|
# Show a unicode character representing your current ruby VM.
|
||||||
|
function _show_rvm_prompt() {
|
||||||
|
local rvm_char
|
||||||
|
if [ -x "${HOME}/.rvm/bin/rvm-prompt" ]; then
|
||||||
|
rvm_char=`${HOME}/.rvm/bin/rvm-prompt u 2>/dev/null`
|
||||||
|
[ -n "${rvm_char}" ] && echo "${rvm_char} "
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
local return_code="%(?..%{$red%}%? ↵%{$reset_color%})"
|
||||||
|
|
||||||
|
PROMPT='
|
||||||
|
%{$magenta%}%n@%m%{$reset_color%}: %{$blue%}%~ $(git_prompt_info)%{$reset_color%}
|
||||||
|
$(_show_rvm_prompt)> '
|
||||||
|
|
||||||
|
RPS1="${return_code}"
|
||||||
|
|
||||||
|
|
||||||
|
ZSH_THEME_GIT_PROMPT_PREFIX="("
|
||||||
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$blue%})"
|
||||||
|
ZSH_THEME_GIT_PROMPT_DIRTY="%{$red%}*%{$reset_color%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$green%}?"
|
||||||
|
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
||||||
Loading…
Add table
Add a link
Reference in a new issue