mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-24 04:29:25 +02:00
Merge d57b3ccaac into 3ce22281db
This commit is contained in:
commit
091546b8c1
1 changed files with 14 additions and 5 deletions
|
|
@ -23,7 +23,8 @@ git_mode() {
|
|||
|
||||
git_dirty() {
|
||||
if [[ "$repo_path" != '.' && `git ls-files -m` != "" ]]; then
|
||||
echo " %{$fg_bold[grey]%}✗%{$reset_color%}"
|
||||
#echo " %{$fg_bold[grey]%}✗%{$reset_color%}"
|
||||
echo " %{$fg_bold[grey]%}X%{$reset_color%}"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
@ -35,10 +36,18 @@ git_prompt() {
|
|||
fi
|
||||
}
|
||||
|
||||
local smiley="%(?,%{$fg[green]%}☺%{$reset_color%},%{$fg[red]%}☹%{$reset_color%})"
|
||||
local psign="%(?,%%,%{$fg[red]%}%%%{$reset_color%})"
|
||||
local user="%{$bg[blue]%}%n%{$reset_color%}"
|
||||
local host="%{$bg[blue]%}@%m%{$reset_color%}"
|
||||
|
||||
PROMPT='
|
||||
%~
|
||||
${smiley} %{$reset_color%}'
|
||||
${user}${host} %3~
|
||||
${psign} '
|
||||
|
||||
RPROMPT='%{$fg[white]%} $(~/.rvm/bin/rvm-prompt)$(git_prompt)%{$reset_color%}'
|
||||
if [[ -d ~/.rvm ]]; then
|
||||
rvm_prompt='$(~/.rvm/bin/rvm-prompt)'
|
||||
else
|
||||
rvm_prompt=''
|
||||
fi
|
||||
|
||||
RPROMPT='%{$fg[white]%} $rvm_prompt$(git_prompt)%{$reset_color%}'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue