m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 07:43:39 -05:00

[install] Make default answer "y" (#1195)

This commit is contained in:
Pierre P
2018-01-13 13:19:33 -05:00
committed by Junegunn Choi
parent 202872c2dc
commit 7f606665cb

View File

@@ -69,6 +69,7 @@ fzf_base="$(pwd)"
ask() {
while true; do
read -p "$1 ([y]/n) " -r
REPLY=${REPLY:-"y"}
if [[ $REPLY =~ ^[Yy]$ ]]; then
return 1
elif [[ $REPLY =~ ^[Nn]$ ]]; then