mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
added theme: andyferra
This commit is contained in:
parent
762b55bb2b
commit
8c72e719c7
1 changed files with 17 additions and 0 deletions
17
themes/andyferra.zsh-theme
Normal file
17
themes/andyferra.zsh-theme
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
function git_branch() {
|
||||||
|
branch=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
|
||||||
|
|
||||||
|
if [ "$branch" != "" ]; then
|
||||||
|
if [ "$branch" = "master" ]; then
|
||||||
|
echo "%{${FG[154]}%}[$branch]%{${reset_color}%}"
|
||||||
|
else
|
||||||
|
echo "%{${FG[161]}%}[$branch]%{${reset_color}%}"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
PROMPT='
|
||||||
|
%c $(git_branch)
|
||||||
|
%{${FG[237]}%}↳%{${reset_color}%} '
|
||||||
Loading…
Add table
Add a link
Reference in a new issue