Skip to content

Instantly share code, notes, and snippets.

@disorder
disorder / gist:40ff4a9b8592064e311ac8065d2dd442
Last active January 14, 2018 12:37 — forked from twneale/gist:5245670
.pythonrc file that adds command history and tab completion to my python shell.
'''
Save this file and add the following line to your ~/.bashrc"
export PYTHONSTARTUP="$HOME/.pythonrc"
'''
import os
import readline
import rlcompleter
import atexit