Mercurial > dotfiles
diff .chezmoiscripts/run_onchange_after_23-install-fzf.sh.tmpl @ 1043:3395b4109688
feat: update fzf and setup in fish
author | Zeger Van de Vannet <zeger@vandevan.net> |
---|---|
date | Thu, 02 May 2024 08:41:10 +0200 |
parents | e4d67607d020 |
children |
line wrap: on
line diff
--- a/.chezmoiscripts/run_onchange_after_23-install-fzf.sh.tmpl Thu May 02 07:53:01 2024 +0200 +++ b/.chezmoiscripts/run_onchange_after_23-install-fzf.sh.tmpl Thu May 02 08:41:10 2024 +0200 @@ -1,9 +1,19 @@ -{{ if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.name "Ubuntu" )) -}} +{{ if (eq .chezmoi.os "linux") -}} #!/usr/bin/env bash set -xe -git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf +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 -}}