view .chezmoiscripts/run_onchange_after_23-install-fzf.sh.tmpl @ 1044:fb4670b7526a

feat: replicate push-line function from zsh source: https://github.com/fish-shell/fish-shell/issues/7800#issuecomment-792915764
author Zeger Van de Vannet <zeger@vandevan.net>
date Thu, 02 May 2024 08:48:33 +0200
parents 3395b4109688
children
line wrap: on
line source

{{ if (eq .chezmoi.os "linux") -}}
#!/usr/bin/env bash

set -xe

if [ -d "$HOME/.fzf" ]; then
  cd ~/.fzf
  git pull
else
  git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
fi

cd ~/.fzf
git fetch --all --tags
git checkout 0.53.0

~/.fzf/install --all

{{ end -}}