# HG changeset patch # User Zeger Van de Vannet # Date 1714632070 -7200 # Node ID 3395b41096882d48a46a025d0088233d55c09173 # Parent aa5a077e8680b335e0cdbe14297ccf1ef7d1892d feat: update fzf and setup in fish diff -r aa5a077e8680 -r 3395b4109688 .chezmoiscripts/run_onchange_after_23-install-fzf.sh.tmpl --- 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 -}} diff -r aa5a077e8680 -r 3395b4109688 dot_config/private_fish/config.fish --- a/dot_config/private_fish/config.fish Thu May 02 07:53:01 2024 +0200 +++ b/dot_config/private_fish/config.fish Thu May 02 08:41:10 2024 +0200 @@ -10,9 +10,15 @@ if test -e "$HOME/bin/mise" $HOME/bin/mise activate fish | source + + # RTX is only fully loaded on fish prompt + # use exec to find the global version and + mise exec direnv -- direnv hook fish | source +else + direnv hook fish | source end -direnv hook fish | source +$HOME/.fzf/bin/fzf --fish | source if status is-interactive # Commands to run in interactive sessions can go here