mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Merge bc75311eb3 into 61e3951e4b
This commit is contained in:
commit
a2c25a98eb
2 changed files with 3 additions and 2 deletions
1
custom/themes/your-theme.zsh-theme
Normal file
1
custom/themes/your-theme.zsh-theme
Normal file
|
|
@ -0,0 +1 @@
|
|||
# Put your custom themes in this folder.
|
||||
|
|
@ -90,7 +90,7 @@ prompt_git() {
|
|||
zstyle ':vcs_info:*' formats ' %u%c'
|
||||
zstyle ':vcs_info:*' actionformats '%u%c'
|
||||
vcs_info
|
||||
echo -n "${ref/refs\/heads\// }${vcs_info_msg_0_}"
|
||||
echo -n "${ref/refs\/heads\//± }${vcs_info_msg_0_}"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
@ -110,7 +110,7 @@ prompt_hg() {
|
|||
# if working copy is clean
|
||||
prompt_segment green black
|
||||
fi
|
||||
echo -n $(hg prompt " {rev}@{branch}") $st
|
||||
echo -n $(hg prompt "☿ {rev}@{branch}") $st
|
||||
else
|
||||
st=""
|
||||
rev=$(hg id -n 2>/dev/null | sed 's/[^-0-9]//g')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue