Skip to content

Instantly share code, notes, and snippets.

@io41
Created January 27, 2012 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save io41/1688530 to your computer and use it in GitHub Desktop.
Save io41/1688530 to your computer and use it in GitHub Desktop.
ipython / pdb++ setup on OS X
#!/bin/sh
backup()
{
[ -e "$1" ] && mv "$1" "$1.backup.$(date +%s)"
}
backup ~/.pdbrc.py
cat > ~/.pdbrc.py <<EOF
import pdb
class Config(pdb.DefaultConfig):
current_line_color = 40
EOF
backup ~/.fancycompleterrc.py
cat > ~/.fancycompleterrc.py <<EOF
from fancycompleter import DefaultConfig
class Config(DefaultConfig):
prefer_pyrepl = False
EOF
easy_install readline # don't pip install this
pip install -U pexpect ipython pdbpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment