Skip to content

Commit

Permalink
fish: fzf: Switch to built in '--tmux' flag
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Chancellor <[email protected]>
  • Loading branch information
nathanchance committed Dec 23, 2024
1 parent 8527a27 commit ffb044c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 5 additions & 3 deletions fish/functions/fzf.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion fish/functions/upd.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ffb044c

Please sign in to comment.