Add func to automatically use fzf-tmux

'fzf' will automatically default to 'fzf-tmux -p 95%,90%' when in a tmux
session.
This commit is contained in:
punkfairie 2024-02-10 21:22:09 -08:00
parent 9b26d1a7af
commit da123a0d7e
No known key found for this signature in database
GPG key ID: 0858B0F48128A755

View file

@ -0,0 +1,9 @@
#!/usr/bin/env fish
function fzf --wraps=fzf
if test "$TERM_PROGRAM" = tmux
fzf-tmux -p 90%,95% $argv
else
fzf $argv
end
end