diff --git a/fish/functions/fzf.fish b/fish/functions/fzf.fish index 029ef3a5..eec83ed6 100644 --- a/fish/functions/fzf.fish +++ b/fish/functions/fzf.fish @@ -3,7 +3,9 @@ # Copyright (C) 2022-2023 Nathan Chancellor function fzf -d "Calls fzf based on how it is available" - set -q TMUX; and set cmd fzf-tmux - set -q cmd; or set cmd fzf - run_cmd $cmd $argv + set args $argv + if set -q TMUX + set -p args --tmux + end + run_cmd (status function) $argv end diff --git a/fish/functions/upd.fish b/fish/functions/upd.fish index b90494f5..f92021b9 100644 --- a/fish/functions/upd.fish +++ b/fish/functions/upd.fish @@ -327,7 +327,6 @@ function upd -d "Runs the update command for the current distro or downloads/upd crl $url | tar -xzf - $install -Dvm755 fzf $binary - crl -o $binary-tmux https://github.com/$repo/raw/$ber/bin/fzf-tmux case gh switch $arch