From 2e8a7c572cc50717e68d4bde809bb6ee6ccb445e Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 8 Apr 2014 04:18:33 -0700 Subject: [PATCH] Fix zsh prompt to exapand every time. --- dotfiles/lib/zsh.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dotfiles/lib/zsh.sh b/dotfiles/lib/zsh.sh index 659ec34d..d01336c4 100644 --- a/dotfiles/lib/zsh.sh +++ b/dotfiles/lib/zsh.sh @@ -10,6 +10,7 @@ compinit autoload -U edit-command-line zle -N edit-command-line bindkey '\C-x\C-e' edit-command-line +setopt PROMPT_SUBST function current_directory() { @@ -26,4 +27,4 @@ function git_prompt_info () { fi } -PROMPT="%{$FG[040]%}%n%{$reset_color%} %{$FG[239]%}at%{$reset_color%} %{$FG[033]%}$(hostname -s)%{$reset_color%} %{$FG[239]%}in%{$reset_color%} %{$terminfo[bold]$FG[226]%}$(current_directory)%{$reset_color%}$(git_prompt_info) %{$FG[239]%}with $(colored_sandbox_string)%{$FG[255]%} " +PROMPT='%{$FG[040]%}%n%{$reset_color%} %{$FG[239]%}at%{$reset_color%} %{$FG[033]%}$(hostname -s)%{$reset_color%} %{$FG[239]%}in%{$reset_color%} %{$terminfo[bold]$FG[226]%}$(current_directory)%{$reset_color%}$(git_prompt_info) %{$FG[239]%}with $(colored_sandbox_string)%{$FG[255]%} '