mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-24 04:29:25 +02:00
Modified Peepcode to make it cleaner
This commit is contained in:
parent
c7adfe9c31
commit
aafc5ac043
1 changed files with 5 additions and 3 deletions
|
|
@ -35,11 +35,13 @@ 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} '
|
||||
|
||||
if [[ -d ~/.rvm ]]; then
|
||||
rvm_prompt='$(~/.rvm/bin/rvm-prompt)'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue