Change color and no new line.
This commit is contained in:
4
pure.zsh
4
pure.zsh
@@ -116,7 +116,7 @@ prompt_pure_preprompt_render() {
|
|||||||
[[ -n ${prompt_pure_git_last_dirty_check_timestamp+x} ]] && git_color=red
|
[[ -n ${prompt_pure_git_last_dirty_check_timestamp+x} ]] && git_color=red
|
||||||
|
|
||||||
# construct preprompt, beginning with path
|
# construct preprompt, beginning with path
|
||||||
local preprompt="%F{blue}%~%f"
|
local preprompt="%F[0]%~%f"
|
||||||
# git info
|
# git info
|
||||||
preprompt+="%F{$git_color}${vcs_info_msg_0_}${prompt_pure_git_dirty}%f"
|
preprompt+="%F{$git_color}${vcs_info_msg_0_}${prompt_pure_git_dirty}%f"
|
||||||
# git pull/push arrows
|
# git pull/push arrows
|
||||||
@@ -128,7 +128,7 @@ prompt_pure_preprompt_render() {
|
|||||||
|
|
||||||
# if executing through precmd, do not perform fancy terminal editing
|
# if executing through precmd, do not perform fancy terminal editing
|
||||||
if [[ "$1" == "precmd" ]]; then
|
if [[ "$1" == "precmd" ]]; then
|
||||||
print -P "\n${preprompt}"
|
print -P "${preprompt}"
|
||||||
else
|
else
|
||||||
# only redraw if preprompt has changed
|
# only redraw if preprompt has changed
|
||||||
[[ "${prompt_pure_last_preprompt}" != "${preprompt}" ]] || return
|
[[ "${prompt_pure_last_preprompt}" != "${preprompt}" ]] || return
|
||||||
|
|||||||
Reference in New Issue
Block a user