dynamic width for separator in af-magic theme

This commit is contained in:
Dusan Maliarik 2013-01-18 19:10:58 +01:00
commit 1cdd20d1de

View file

@ -14,8 +14,8 @@ if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
# primary prompt # primary prompt
PROMPT_SEP=`printf '-%.0s' {1..$COLUMNS}` ln_sep() { printf '-%.0s' {1..$COLUMNS}; }
PROMPT='$FG[237]$PROMPT_SEP%{$reset_color%} PROMPT='$FG[237]$(ln_sep)%{$reset_color%}
$FG[032]%~\ $FG[032]%~\
$(git_prompt_info) \ $(git_prompt_info) \
$FG[105]%(!.#.»)%{$reset_color%} ' $FG[105]%(!.#.»)%{$reset_color%} '