Last active
May 25, 2016 11:04
-
-
Save gamefiend/69b34ec8397f0c622666b13f38113730 to your computer and use it in GitHub Desktop.
Howdoi "shell" -- make a looping program for making howdoi searches. Really handy as a right-hand pane in terminal-based coding environment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# assumes that you have the program howdoi -- if you don't, grab it from | |
# makes a mini-looping "shell" for using 'howdoi' in another pane, tab, or window | |
LANGUAGE='python' | |
clear | |
echo "Python HOWDOI" | |
echo "[ Ctl+C ] to exit" | |
while : | |
do | |
read -p $'\e[1;31mHOWDOI...\e[0m ' input | |
# I set my default language to python, but change this to something relevant or leave it op | |
howdoi --color --all ${LANGUAGE} $input | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment