Skip to content

Instantly share code, notes, and snippets.

@stormslowly
Last active August 29, 2015 14:12
Show Gist options
  • Save stormslowly/18a79377417feb4ac9c7 to your computer and use it in GitHub Desktop.
Save stormslowly/18a79377417feb4ac9c7 to your computer and use it in GitHub Desktop.
get a random commandlinefu from commandlinefu.com

STEP 0

install HTML-XML-utils and w3m

STEP 1

in your .bashrc add below alias

alias cf="curl -Ls http://www.commandlinefu.com/commands/random  |hxprune -c sample-output | hxprune -c meta|hxprune -c votes |hxprune -c options |hxprune -c window-bar  | hxnormalize  -x | hxselect -s '\n' '.terminal-display'  | w3m -dump   -T text/html"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment