feat(theme_chooser): display non-zero exit code (#8428)

Fixes #8427
This commit is contained in:
Max Staff 2021-04-06 12:23:59 +02:00 committed by GitHub
parent 2d40b562e5
commit 279212f2cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ function theme_preview() {
print "$fg[blue]${(l.((${COLUMNS}-${#THEME_NAME}-5))..─.)}$reset_color $THEME_NAME $fg[blue]───$reset_color"
source "$THEMES_DIR/$THEME"
cols=$(tput cols)
(exit 1)
print -P "$PROMPT $RPROMPT"
}