diff options
Diffstat (limited to 'tmuxsh/_tuxi,--.ask.google.questions')
-rwxr-xr-x | tmuxsh/_tuxi,--.ask.google.questions | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tmuxsh/_tuxi,--.ask.google.questions b/tmuxsh/_tuxi,--.ask.google.questions new file mode 100755 index 0000000..3edc73d --- /dev/null +++ b/tmuxsh/_tuxi,--.ask.google.questions @@ -0,0 +1,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 |