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
|
||||
|
||||
# construct preprompt, beginning with path
|
||||
local preprompt="%F{blue}%~%f"
|
||||
local preprompt="%F[0]%~%f"
|
||||
# git info
|
||||
preprompt+="%F{$git_color}${vcs_info_msg_0_}${prompt_pure_git_dirty}%f"
|
||||
# git pull/push arrows
|
||||
@@ -128,7 +128,7 @@ prompt_pure_preprompt_render() {
|
||||
|
||||
# if executing through precmd, do not perform fancy terminal editing
|
||||
if [[ "$1" == "precmd" ]]; then
|
||||
print -P "\n${preprompt}"
|
||||
print -P "${preprompt}"
|
||||
else
|
||||
# only redraw if preprompt has changed
|
||||
[[ "${prompt_pure_last_preprompt}" != "${preprompt}" ]] || return
|
||||
|
||||
Reference in New Issue
Block a user