Skip to content
Myr

Fix fzf.{bash,zsh} when Go version is not supported

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

authored by Junegunn Choi · committed by Junegunn Choi · parent 2c86e72 · Browse files · 1 file+20 added−10 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+20 added−10 removed

  • other:+20 added−10 removed

1 file+20 added−10 removed

modified:install+20 added-10 removed
150 unmodified lines
151 if [ $auto_completion -ne 0 ]; then152 fzf_completion="# $fzf_completion"153 fi154155 if [ -n "$binary_error" ]; then155 cat > $src << EOF156 cat > $src << EOF157# Setup fzf function158# ------------------159unalias fzf 2> /dev/null160fzf() {161 $fzf_cmd "\$@"162}163export -f fzf > /dev/null164165# Auto-completion166# ---------------167$fzf_completion168169EOF170 else171 cat > $src << EOF172# Setup fzf173# ---------174unalias fzf 2> /dev/null175unset fzf 2> /dev/null160if [ -x "$fzf_base/bin/fzf" ]; then161 if [[ ! "\$PATH" =~ "$fzf_base/bin" ]]; then162 export PATH="$fzf_base/bin:\$PATH"176if [[ ! "\$PATH" =~ "$fzf_base/bin" ]]; then177 export PATH="$fzf_base/bin:\$PATH"163 fi164else165 fzf() {166 $fzf_cmd "\$@"167 }168 export -f fzf > /dev/null178fi179180# Auto-completion181# ---------------182$fzf_completion183184EOF185 fi186187 if [ $key_bindings -eq 0 ]; then188 if [ $shell = bash ]; then189 cat >> $src << "EOFZF"
296 unmodified lines