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:
parent
8a87104009
commit
51ab50d081
6
flash
6
flash
|
|
@ -209,11 +209,11 @@ done
|
|||
|
||||
|
||||
# Set some parameters for preview command used by FZF
|
||||
while [[ -z $PREVIEWER_PARAMTERS ]]; do
|
||||
case $PREVIEWER in
|
||||
while [ -z "$PREVIEWER_PARAMTERS" ]; do
|
||||
case "$PREVIEWER" in
|
||||
bat) PREVIEWER_PARAMTERS="--theme='Solarized (dark)' --style=numbers --color=always" ;;
|
||||
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
|
||||
done
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue