refactor(pull request): update quotes and new line

Add quotes around variables so the script is more POSIX compliant. Also
add new line for styling.
This commit is contained in:
jsnal 2020-05-15 17:11:19 -04:00
parent 8a87104009
commit 51ab50d081
1 changed files with 3 additions and 3 deletions

6
flash
View File

@ -209,11 +209,11 @@ done
# Set some parameters for preview command used by FZF # Set some parameters for preview command used by FZF
while [[ -z $PREVIEWER_PARAMTERS ]]; do 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..." && read -r -s -p 'Press [Enter] to continue...' && PREVIEWER='bat' ;; *) 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' ;;
esac esac
done done