aboutsummaryrefslogtreecommitdiffstats
path: root/bin/fzf_surfraw_tmux
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-05-14 18:14:50 +0000
committerterminaldweller <thabogre@gmail.com>2021-05-14 18:14:50 +0000
commit6e528248414e330c9e25e81596ab47b8b8a5b701 (patch)
treee1aa41a7f3198eeac187e6177ec7d4a33db229d3 /bin/fzf_surfraw_tmux
downloadscripts-6e528248414e330c9e25e81596ab47b8b8a5b701.tar.gz
scripts-6e528248414e330c9e25e81596ab47b8b8a5b701.zip
first commitmaster
Diffstat (limited to 'bin/fzf_surfraw_tmux')
-rwxr-xr-xbin/fzf_surfraw_tmux6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/fzf_surfraw_tmux b/bin/fzf_surfraw_tmux
new file mode 100755
index 0000000..b6344cc
--- /dev/null
+++ b/bin/fzf_surfraw_tmux
@@ -0,0 +1,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")"