Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

Commit 63720e6

Browse files
committed
More zsh prompt cleanup.
1 parent 9a8df3b commit 63720e6

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

‎zsh/prompt.zsh‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ git_dirty() {
2020
else
2121
if [[ $($git status --porcelain) == "" ]]
2222
then
23-
# echo "on %{$fg_bold[green]%}$(git_prompt_info)%{$reset_color%}"
24-
echo "%F{075}(branch:$(git_prompt_info))%{$reset_color%}"
23+
echo "%F{075}(branch:$(git_prompt_info)$(need_push))%{$reset_color%}"
2524
else
26-
echo "%F{075}(branch:$(git_prompt_info)%F{214}*%F{075})%{$reset_color%}"
25+
echo "%F{075}(branch:$(git_prompt_info)%F{214}*%F{075}$(need_push))%{$reset_color%}"
2726
fi
2827
fi
2928
}
@@ -41,18 +40,17 @@ unpushed () {
4140
need_push () {
4241
if [[ $(unpushed) == "" ]]
4342
then
44-
echo " "
43+
echo ""
4544
else
46-
echo " %{$fg_bold[magenta]%}*%{$reset_color%} "
45+
echo "%{$fg[red]%}‡%{$reset_color%}"
4746
fi
4847
}
4948

5049
directory_name() {
51-
echo "%F{032}$(pwd)/%{$reset_color%}"
50+
echo "%F{032}$(pwd)%{$reset_color%}"
5251
}
5352

54-
export PROMPT=$'$(directory_name)$(git_dirty)$(need_push)%F{105}»%{$reset_color%} '
55-
# export PROMPT='%F{032}${prompt_pwd}%f${git_info:+${(e)git_info[prompt]}}%(!. %B%F{red}#%f%b.)${editor_info[keymap]} '
53+
export PROMPT=$'$(directory_name)$(git_dirty)%F{105} »%{$reset_color%} '
5654

5755
set_prompt () {
5856
export RPROMPT="%{$fg_bold[cyan]%}%{$reset_color%}"

0 commit comments

Comments
 (0)