✨ 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:
parent
9b26d1a7af
commit
da123a0d7e
1 changed files with 9 additions and 0 deletions
9
tmux/.config/fish/functions/fzf.fish.symlink
Normal file
9
tmux/.config/fish/functions/fzf.fish.symlink
Normal 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
|
Loading…
Reference in a new issue