Skip to content

Instantly share code, notes, and snippets.

@gamefiend
Last active May 25, 2016 11:04
Show Gist options
  • Save gamefiend/69b34ec8397f0c622666b13f38113730 to your computer and use it in GitHub Desktop.
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.
#!/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