blob: 1fc2b7f91c2a0f2fc17d04f3ae4997bfb786bbc6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#! @execline@/bin/execlineb -S0
define -s fzf_opts "--reverse"
ifelse { importas -i _ DISPLAY }
{
foot -a float
getpid my_pid
importas -i -u my_pid my_pid
backtick -i -n term_pid { awk "{print $4}" /proc/${my_pid}/stat }
importas -i -u term_pid term_pid
redirfd -r 0 /proc/${term_pid}/fd/0
redirfd -w 1 /proc/${term_pid}/fd/1
@fzf@/bin/fzf $fzf_opts $@
}
ifelse { importas -i _ TMUX }
{ @fzf@/bin/fzf-tmux $fzf_opts $@ }
@fzf@/bin/fzf $fzf_opts $@
|