From 3933b201151e3bb54ec04b1e6648d6377d269c63 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Wed, 10 Jan 2018 12:05:15 +0100 Subject: [PATCH] Fix zsh prompt --- .config/zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index e86738a..427a52d 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -25,7 +25,7 @@ precmd() { USR_HOST="$fg[cyan]%n$reset_color@$fg[cyan]%m$reset_color" DIRECTORY="$fg[green]%~$reset_color" -ARROW="%(?::$fg[red])➤$reset_color" +ARROW="%(?..%{$fg[red]%})➤$reset_color" PROMPT='╭─${USR_HOST} ${DIRECTORY} ${vcs_info_msg_0_} ╰─${ARROW} ' RPROMPT='%t'