X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=.pdbrc;h=f2ec6a5d7855d1351202c7f7f360846686aae942;hb=920e9b2291149c2adbb89eaaf2644575aaaa06f9;hp=1bc8abf8fe90b6938203eef578b80dc467476938;hpb=f46bd4d41cc7f243bc8a321effee5200aa69e709;p=dotfiles.git diff --git a/.pdbrc b/.pdbrc index 1bc8abf..f2ec6a5 100644 --- a/.pdbrc +++ b/.pdbrc @@ -8,4 +8,12 @@ # If pdbrc.py is missing, you get an error message (which doesn't hurt). import os +import sys + x = execfile(os.path.expanduser("~/lib/python/pdbrc.py")) + +# http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/498182 +# replace the Pdb class's complete method with ours +sys._getframe(1).f_globals['Pdb'].complete = complete +# set use_rawinput to 1 as tab completion relies on rawinput being used +sys._getframe(1).f_locals['self'].use_rawinput = 1