From 36fd5674d1c02c8747f8b0b42e4bfcb2f7edede2 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Wed, 1 May 2013 17:37:11 +0200 Subject: [PATCH] Enable prompt substitution Fixes #2 --- prompt.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prompt.zsh b/prompt.zsh index dcb4356..5fa4a17 100644 --- a/prompt.zsh +++ b/prompt.zsh @@ -29,6 +29,9 @@ zstyle ':vcs_info:*' enable git # You can add hg too if needed: `git hg` zstyle ':vcs_info:git*' formats ' %b' zstyle ':vcs_info:git*' actionformats ' %b|%a' +# enable prompt substitution +setopt PROMPT_SUBST + # Only show username if not default [ $USER != $DEFAULT_USERNAME ] && local username='%n@%m '