Skip to content

Instantly share code, notes, and snippets.

@philroche
Created September 3, 2015 14:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philroche/545161ffe767c1216404 to your computer and use it in GitHub Desktop.
Save philroche/545161ffe767c1216404 to your computer and use it in GitHub Desktop.
import readline; print '\n'.join([str(readline.get_history_item(i)) for i in range(readline.get_current_history_length())])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment