Showing posts with label devel. Show all posts
Showing posts with label devel. Show all posts

Friday, April 9, 2010

python and readline support

It's there for the python shell but you have to set it up yourself.


jmaclean@p0rnstAr.local ~ > grep python .bashrc
export PYTHONSTARTUP=/Users/jmaclean/.pythonrc.py
jmaclean@p0rnstAr.local ~ > cat .pythonrc.py
#!/usr/bin/env python -w

import rlcompleter, readline
readline.parse_and_bind('tab: complete')

import sys
sys.path.append('/Users/jmaclean/stfu/virt/')

del sys