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.

17 lines
470 B
Bash

#!/usr/bin/env bash
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
# https://www.youtube.com/user/gotbletu
# DESC: google top answers to your questions
# DEMO: https://youtu.be/mWJBlkHwZy8
# DEPEND: tuxi (https://github.com/Bugswriter/tuxi)
# REFF: read with history https://unix.stackexchange.com/a/302923/430298
set -o vi
while true
do
read -rep ">>> Ask Google A Question: " INPUT
history -s "$INPUT"
tuxi -r "$INPUT"
printf "\n"
done