colorize more output and linebreak on quit

This commit is contained in:
Bryan Jenks 2020-05-15 14:34:21 -07:00
parent 9b8abbe476
commit eb8d41e7f3
1 changed files with 1 additions and 1 deletions

2
flash
View File

@ -213,7 +213,7 @@ while [ -z "$PREVIEWER_PARAMTERS" ]; do
case "$PREVIEWER" in case "$PREVIEWER" in
bat) PREVIEWER_PARAMTERS="--theme='Solarized (dark)' --style=numbers --color=always" ;; bat) PREVIEWER_PARAMTERS="--theme='Solarized (dark)' --style=numbers --color=always" ;;
cat) PREVIEWER_PARAMTERS="--number" ;; cat) PREVIEWER_PARAMTERS="--number" ;;
*) echo -e "$PREVIEWER is not a valid previewer. Use 'bat' or 'cat'. Falling back on default...\n" && read -r -s -p 'Press [Enter] to continue...' && PREVIEWER='bat' ;; *) echo -e "${RED}$PREVIEWER${NC} is not a valid previewer. Use '${GREEN}bat${NC}' or '${GREEN}cat${NC}'. Falling back on default...\n" && read -r -s -p 'Press [Enter] to continue...' && echo -e "\n" && PREVIEWER='bat' ;;
esac esac
done done