Commit 0fcb7dd5 authored by Gaetan Semet's avatar Gaetan Semet
Browse files

Display right prompt in theme chooser



I didn't found the way to right-align the right prompt
properly.
Signed-off-by: default avatarGaetan Semet <gaetan@xeberon.net>
parent dff966af
...@@ -24,7 +24,8 @@ function theme_preview() { ...@@ -24,7 +24,8 @@ function theme_preview() {
THEME_NAME=`echo $THEME | sed s/\.zsh-theme$//` THEME_NAME=`echo $THEME | sed s/\.zsh-theme$//`
print "$fg[blue]${(l.((${COLUMNS}-${#THEME_NAME}-5))..─.)}$reset_color $THEME_NAME $fg[blue]───$reset_color" print "$fg[blue]${(l.((${COLUMNS}-${#THEME_NAME}-5))..─.)}$reset_color $THEME_NAME $fg[blue]───$reset_color"
source "$THEMES_DIR/$THEME" source "$THEMES_DIR/$THEME"
print -P $PROMPT cols=$(tput cols)
print -P "$PROMPT $RPROMPT"
} }
function banner() { function banner() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment