Skip to content
Myr

[install] Escape spaces in installation directory

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Close #1390

authored by Junegunn Choi · committed by Junegunn Choi · parent 3bc98ed · Browse files · 1 file+5 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−4 removed

  • other:+5 added−4 removed

1 file+5 added−4 removed

modified:install+5 added-4 removed
71 unmodified lines
72 esac73done7475cd "$(dirname "${BASH_SOURCE[0]}")"76fzf_base="$(pwd)"76fzf_base=$(pwd)77fzf_base_esc=$(printf %q "$fzf_base")7879ask() {80 while true; do81 read -p "$1 ([y]/n) " -r
185 unmodified lines
267268 cat > "$src" << EOF269# Setup fzf270# ---------270if [[ ! "\$PATH" == *$fzf_base/bin* ]]; then271if [[ ! "\$PATH" == *$fzf_base_esc/bin* ]]; then272 export PATH="\$PATH:$fzf_base/bin"273fi274275# Auto-completion
11 unmodified lines
287# fish288if [[ "$shells" =~ fish ]]; then289 echo -n "Update fish_user_paths ... "290 fish << EOF290 echo \$fish_user_paths | \grep $fzf_base/bin > /dev/null291 or set --universal fish_user_paths \$fish_user_paths $fzf_base/bin291 echo \$fish_user_paths | \grep "$fzf_base"/bin > /dev/null292 or set --universal fish_user_paths \$fish_user_paths "$fzf_base"/bin293EOF294 [ $? -eq 0 ] && echo "OK" || echo "Failed"295296 mkdir -p "${fish_dir}/functions"
96 unmodified lines