You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
736 B
Bash

#!/usr/bin/env bash
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
# https://www.youtube.com/user/gotbletu
# DESC: search internet from a list of search engines
# DEPEND: fzf surfraw grep gawk coreutils util-linux
# REQD: make sure to set your browser variable in your shellrc
# vim ~/.bashrc
# export BROWSER=chromium
# select your elvi
PREFIX=$(surfraw -elvi | grep -v 'LOCAL\|GLOBAL'| fzf -e -m --reverse | awk '{print $1}')
[ -z "$PREFIX" ] && exit
echo "Search Engine(s): $PREFIX" | tr '\n' ' '
echo
read -r -e -p "Enter Keywords: " INPUT
# Note: dont qoute $INPUT it will mess up results
echo "$PREFIX" | while read -r line; do setsid -f surfraw -browser="$BROWSER" "$line" $INPUT ; done