-
Notifications
You must be signed in to change notification settings - Fork 18
/
.pdbrc.py
43 lines (35 loc) · 1.3 KB
/
.pdbrc.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
"""
This is an example configuration file for pdb++.
Actually, it is what the author uses daily :-). Put it into ~/.pdbrc.py to use
it.
"""
import readline
import pdb
class Config(pdb.DefaultConfig):
editor = '$EDITOR'
stdin_paste = 'epaste'
filename_color = pdb.Color.lightgray
use_terminal256formatter = True
sticky_by_default = True
#exec_if_unfocused = "play ~/sounds/dialtone.wav 2> /dev/null &"
def __init__(self):
# readline.parse_and_bind('set convert-meta on')
# readline.parse_and_bind('Meta-/: complete')
try:
from pygments.formatters import terminal
except ImportError:
pass
else:
self.colorscheme = terminal.TERMINAL_COLORS.copy()
self.colorscheme.update({
terminal.Keyword: ('darkred', 'red'),
terminal.Number: ('darkyellow', 'yellow'),
terminal.String: ('brown', 'green'),
terminal.Name.Function: ('darkgreen', 'blue'),
terminal.Name.Namespace: ('teal', 'turquoise'),
})
def setup(self, pdb):
# make 'l' an alias to 'longlist'
Pdb = pdb.__class__
Pdb.do_l = Pdb.do_longlist
Pdb.do_st = Pdb.do_sticky