Skip to content

Instantly share code, notes, and snippets.

@cldotdev
Last active February 27, 2019 05:44
Show Gist options
  • Select an option

  • Save cldotdev/5660675 to your computer and use it in GitHub Desktop.

Select an option

Save cldotdev/5660675 to your computer and use it in GitHub Desktop.
bpython configuration
# This is a standard python config file
# Valid values can be True, False, integer numbers, strings
# By default bpython will look for ~/.config/bpython/config or you
# can specify a file with the --config option on the command line
# General section tag
[general]
# Display the autocomplete list as you type (default: True).
# When this is off, you can hit tab to see the suggestions.
auto_display_list = True
# Syntax highlighting as you type (default: True).
syntax = True
# Display the arg spec (list of arguments) for callables,
# when possible (default: True).
arg_spec = True
# History file (default: ~/.pythonhist):
hist_file = ~/.pythonhist
# Number of lines to store in history (set to 0 to disable) (default: 100):
hist_length = 1000
# Soft tab size (default: 4, see pep-8):
tab_length = 4
# Color schemes should be put in ~/.bpython/
# e.g. to use the theme ~/.bpython/foo.theme set color_scheme = foo
# Leave blank or set to "default" to use the default theme
color_scheme = emphasize
[keyboard]
pastebin = F8
save = C-s
# Each letter represents a colour marker:
# k, r, g, y, b, m, c, w, d
# which stands for:
# blacK, Red, Green, Yellow, Blue, Magenta, Cyan, White, Default
# Capital letters represent bold
# Copy to ~/.bpython/emphasize.theme and set "color_scheme = emphasize" in ~/.bpython/config
[syntax]
keyword = B
name = W
comment = C
string = M
error = R
number = Y
operator = G
paren = G
punctuation = G
token = C
[interface]
# XXX: gnome-terminal appears to be braindead. The cursor will disappear unless
# you set the background colour to "d".
background = d
output = w
main = w
prompt = w
prompt_more = w
# Each letter represents a colour marker:
# k, r, g, y, b, m, c, w, d
# which stands for:
# blacK, Red, Green, Yellow, Blue, Magenta, Cyan, White, Default
# Capital letters represent bold
# Copy to ~/.bpython/foo.theme and set "color_scheme = foo" in ~/bpython/config
[syntax]
keyword = G
name = w
comment = g
string = y
error = R
number = B
operator = W
punctuation = W
token = C
paren = C
[interface]
background = d
output = d
main = d
prompt = g
prompt_more = r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment