1 1. disable fish as not packaged and creates broken symlinks
2 1. disabled download as we pre-package
3 1. fix paths to completions
5 --- fzf-0.34.0/install~ 2022-09-30 09:21:44.085976824 +0300
6 +++ fzf-0.34.0/install 2022-09-30 09:29:08.782477314 +0300
11 -shells="bash zsh fish"
15 fish_dir=${XDG_CONFIG_HOME:-$HOME/.config}/fish
17 chmod +x fzf && check_binary
20 -# Try to download binary executable
23 +# Try to download binary executable
28 Windows*\ *64) download fzf-$version-windows_amd64.zip ;;
29 *) binary_available=0 binary_error=1 ;;
33 +# pre-packaged, so always true
34 +binary_available=1 binary_error=""
37 if [ -n "$binary_error" ]; then
39 src=${prefix_expand}.${shell}
40 echo -n "Generate $src ... "
42 - fzf_completion="[[ \$- == *i* ]] && source \"$fzf_base/shell/completion.${shell}\" 2> /dev/null"
43 + fzf_completion="[[ \$- == *i* ]] && source \"/usr/share/fzf/completion.${shell}\" 2> /dev/null"
44 if [ $auto_completion -eq 0 ]; then
45 fzf_completion="# $fzf_completion"
48 - fzf_key_bindings="source \"$fzf_base/shell/key-bindings.${shell}\""
49 + fzf_key_bindings="source \"/usr/share/fzf/key-bindings.${shell}\""
50 if [ $key_bindings -eq 0 ]; then
51 fzf_key_bindings="# $fzf_key_bindings"
57 -if [[ ! "\$PATH" == *$fzf_base_esc/bin* ]]; then
58 - PATH="\${PATH:+\${PATH}:}$fzf_base/bin"
64 fish_binding="${fish_dir}/functions/fzf_key_bindings.fish"
65 if [ $key_bindings -ne 0 ]; then
66 echo -n "Symlink $fish_binding ... "
67 - ln -sf "$fzf_base/shell/key-bindings.fish" \
68 + ln -sf "/usr/share/fzf/key-bindings.fish" \
69 "$fish_binding" && echo "OK" || echo "Failed"
71 echo -n "Removing $fish_binding ... "