| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5659aa8 commit 828f2d1
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,11 +4,11 @@ Themes | |||
| 4 | 4 | ====== | |
| 5 | 5 | This chapter is about bpython's themeing capabalities. | |
| 6 | 6 | ||
| 7 | - bpython uses .theme files placed in your ~/.bpython directory. You can set the | ||
| 8 | - theme in the :ref:`configuration_color_scheme` option in your | ||
| 9 | - `~/bpython/config`` file (:ref:`configuration`). You can find some of our | ||
| 10 | - themes in our gallery on our website: | ||
| 11 | - http://bpython-interpreter.org/themes/ | ||
| 7 | + bpython uses .theme files placed in your ``$XDG_CONFIG_HOME/bpython`` directory | ||
| 8 | + [#f1]_. You can set the theme in the :ref:`configuration_color_scheme` option | ||
| 9 | + in your ``$XDG_CONFIG_HOME/bpython/config`` file (:ref:`configuration`). You can | ||
| 10 | + find some of our themes in our gallery on our website: | ||
| 11 | + `<http://bpython-interpreter.org/themes/>`_ | ||
| 12 | 12 | ||
| 13 | 13 | Available Colors | |
| 14 | 14 | ---------------- | |
@@ -53,7 +53,8 @@ The default theme included in bpython is as follows: | |||
| 53 | 53 | # which stands for: | |
| 54 | 54 | # blacK, Red, Green, Yellow, Blue, Magenta, Cyan, White, Default | |
| 55 | 55 | # Capital letters represent bold | |
| 56 | - # Copy to ~/.bpython/foo.theme and set "color_scheme = foo" in ~/bpython/config | ||
| 56 | + # Copy to $XDG_CONFIG_HOME/bpython/foo.theme and set "color_scheme = foo" in | ||
| 57 | + # $XDG_CONFIG_HOME/bpython/config ($XDG_CONFIG_HOME defaults to ~/.config) | ||
| 57 | 58 | ||
| 58 | 59 | [syntax] | |
| 59 | 60 | keyword = y | |
@@ -66,7 +67,7 @@ The default theme included in bpython is as follows: | |||
| 66 | 67 | punctuation = y | |
| 67 | 68 | token = C | |
| 68 | 69 | paren = R | |
| 69 | - | ||
| 70 | + | ||
| 70 | 71 | [interface] | |
| 71 | 72 | # XXX: gnome-terminal appears to be braindead. The cursor will disappear unless | |
| 72 | 73 | # you set the background colour to "d". | |
@@ -76,3 +77,7 @@ The default theme included in bpython is as follows: | |||
| 76 | 77 | prompt = c | |
| 77 | 78 | prompt_more = g | |
| 78 | 79 | ||
| 80 | + .. :: Footnotes | ||
| 81 | + | ||
| 82 | + .. [#f1] ``$XDG_CONFIG_HOME`` defaults to ``~/.config`` if not set. | ||
| 83 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,8 +3,8 @@ | |||
| 3 | 3 | # which stands for: | |
| 4 | 4 | # blacK, Red, Green, Yellow, Blue, Magenta, Cyan, White, Default | |
| 5 | 5 | # Capital letters represent bold | |
| 6 | - # Copy to ~/.bpython/foo.theme and set "color_scheme = foo" in | ||
| 7 | - # ~/.bpython/config | ||
| 6 | + # Copy to $XDG_CONFIG_HOME/bpython/foo.theme and set "color_scheme = foo" in | ||
| 7 | + # $XDG_CONFIG_HOME/bpython/config ($XDG_CONFIG_HOME defaults to ~/.config) | ||
| 8 | 8 | ||
| 9 | 9 | [syntax] | |
| 10 | 10 | keyword = M | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,8 @@ | |||
| 1 | 1 | # This is a standard python config file | |
| 2 | 2 | # Valid values can be True, False, integer numbers, strings | |
| 3 | - # By default bpython will look for ~/.config/bpython/config or you | ||
| 4 | - # can specify a file with the --config option on the command line | ||
| 3 | + # By default bpython will look for $XDG_CONFIG_HOME/bpython/config | ||
| 4 | + # ($XDG_CONFIG_HOME defaults to ~/.config) or you can specify a file with the | ||
| 5 | + # --config option on the command line | ||
| 5 | 6 | ||
| 6 | 7 | # General section tag | |
| 7 | 8 | [general] | |
@@ -26,9 +27,9 @@ hist_length = 100 | |||
| 26 | 27 | # Soft tab size (default: 4, see pep-8): | |
| 27 | 28 | tab_length = 4 | |
| 28 | 29 | ||
| 29 | - # Color schemes should be put in ~/.bpython/ | ||
| 30 | - # e.g. to use the theme ~/.bpython/foo.theme set color_scheme = foo | ||
| 31 | - # Leave blank or set to "default" to use the default theme | ||
| 30 | + # Color schemes should be put in $XDG_CONFIG_HOME/bpython/ e.g. to use the theme | ||
| 31 | + # $XDG_CONFIG_HOME/bpython/foo.theme set color_scheme = foo. Leave blank or set | ||
| 32 | + # to "default" to use the default theme | ||
| 32 | 33 | color_scheme = default | |
| 33 | 34 | ||
| 34 | 35 | [keyboard] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,8 @@ | |||
| 3 | 3 | # which stands for: | |
| 4 | 4 | # blacK, Red, Green, Yellow, Blue, Magenta, Cyan, White, Default | |
| 5 | 5 | # Capital letters represent bold | |
| 6 | - # Copy to ~/.bpython/foo.theme and set "color_scheme = foo" in ~/.bython/config | ||
| 6 | + # Copy to $XDG_CONFIG_HOME/bpython/foo.theme and set "color_scheme = foo" in | ||
| 7 | + # $XDG_CONFIG_HOME/bpython/config ($XDG_CONFIG_HOME defaults to ~/.config) | ||
| 7 | 8 | ||
| 8 | 9 | [syntax] | |
| 9 | 10 | keyword = y | |
| Back | FazBrowse Home | New Git URL |
0 commit comments