blob: 3edc73d6ca0b403da33d840022246a104a57d449 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/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
|