#!/bin/bash

set -eufo pipefail

dir="$PROJECTS/fzf"

if [[ -d "$dir" ]]; then
    git -C "$dir" pull
else
    git clone git@github.com:junegunn/fzf.git "$dir"
fi

"$dir/install" --bin
sim install "$dir/bin/fzf"
rsync -a "$dir/man" ~/.local/share
mkdir -p ~/.local/state/fzf

Add script for installing fzf
Add script for installing fzf

The reason fzf is a bit complicated is that it includes a Vim plugin
(separate from the more powerful fzf vim plugin that builds atop it), so
I don't want to use the homebrew version, but I also don't want to rely
on a (neo)vim plugin system to provide this command on my system, so I
have a central ~/Code/fzf install and use that for (neo)vim and install
the binary with sim.
