Change color and no new line.

This commit is contained in:
2015-09-02 10:03:34 +02:00
parent 49cd9360a2
commit cfc0d9ccc7

View File

@@ -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