aboutsummaryrefslogblamecommitdiffstats
path: root/bin/fzf_surfraw_tmux
blob: b6344cc24dc1ff7190ce9f7f2db246ef2a555b3c (plain) (tree)
1
2
3
4
5
6





                                                                                      
#!/usr/bin/env sh

PREFIX=$(surfraw -elvi | grep -v 'LOCAL\|GLOVAL'| fzf --algo=v2 -e | awk '{print $1}')
if [ "$PREFIX" = "" ]; then exit;fi
read -r -e -p " $PREFIX >>> Enter The Search Keyword: " INPUT
pidof tmux >/dev/null && tmux set-buffer "$(surfraw -p "$PREFIX" "$INPUT")"