diff --git a/zsh/.config/zsh/config.d/00_query_pk_front_color.zsh b/zsh/.config/zsh/config.d/00_query_pk_front_color.zsh index 0060300..58ce219 100644 --- a/zsh/.config/zsh/config.d/00_query_pk_front_color.zsh +++ b/zsh/.config/zsh/config.d/00_query_pk_front_color.zsh @@ -10,5 +10,5 @@ function fetch_fronter_color { # fetch the fronter color every precmd and export it for the prompt precmd_functions+="set_fronter_color" function set_fronter_color { - export fronter_color="$(eval_with_secrets fetch_fronter_color)" + export PK_FRONTER_COLOR="$(eval_with_secrets fetch_fronter_color)" } diff --git a/zsh/.config/zsh/config.d/30_prompt.zsh b/zsh/.config/zsh/config.d/30_prompt.zsh index eb9df19..dca5642 100644 --- a/zsh/.config/zsh/config.d/30_prompt.zsh +++ b/zsh/.config/zsh/config.d/30_prompt.zsh @@ -9,7 +9,7 @@ autoload -Uz vcs_info precmd_functions+="vcs_info" # Prompt shows hostname if connected to a remote or if root -PROMPT="%B$([ -n "$is_remote" ] || [ "$EUID" = 0 ] && echo "%F{magenta}%m%f ")%F{$([ "$EUID" = 0 ] && echo "red" || echo "\${fronter_color:-cyan}")}%n%f %F{blue}%~%f%b \${vcs_info_msg_0_}%B%#%b " +PROMPT="%B$([ -n "$is_remote" ] || [ "$EUID" = 0 ] && echo "%F{magenta}%m%f ")%F{$([ "$EUID" = 0 ] && echo "red" || echo "\${PK_FRONTER_COLOR:-cyan}")}%n%f %F{blue}%~%f%b \${vcs_info_msg_0_}%B%#%b " # The line before the prompt is used by RPROMPT for information about the previous command - leave space NEWLINE=$'\n'