From 1cdd20d1deb4d48bd3a0edc9128fa32c75a2c695 Mon Sep 17 00:00:00 2001 From: Dusan Maliarik Date: Fri, 18 Jan 2013 19:10:58 +0100 Subject: [PATCH] dynamic width for separator in af-magic theme --- themes/af-magic.zsh-theme | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/af-magic.zsh-theme b/themes/af-magic.zsh-theme index 29e3afc49..83a79a533 100644 --- a/themes/af-magic.zsh-theme +++ b/themes/af-magic.zsh-theme @@ -14,8 +14,8 @@ if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" # primary prompt -PROMPT_SEP=`printf '-%.0s' {1..$COLUMNS}` -PROMPT='$FG[237]$PROMPT_SEP%{$reset_color%} +ln_sep() { printf '-%.0s' {1..$COLUMNS}; } +PROMPT='$FG[237]$(ln_sep)%{$reset_color%} $FG[032]%~\ $(git_prompt_info) \ $FG[105]%(!.#.»)%{$reset_color%} '