| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 349a1e7 commit da01433
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,14 +3,17 @@ | |||
| 3 | 3 | Configuration | |
| 4 | 4 | ============= | |
| 5 | 5 | You can copy the supplied sample-config to your home directory and move it to | |
| 6 | - ``/.bpython/config``. bpython tries to find ``~/.bpython/config`` and use it as | ||
| 7 | - its configuration (it also looks for ``~/.bpython.ini`` as this was the default | ||
| 8 | - before 0.9.4), if the file does not exist bpython will use its documented | ||
| 9 | - defaults. | ||
| 6 | + ``$XDG_CONFIG_HOME/bpython/config`` [#f1]_. bpython tries to find | ||
| 7 | + ``$XDG_CONFIG_HOME/bpython/config`` and use it as its configuration, if the | ||
| 8 | + file does not exist bpython will use its documented defaults. | ||
| 9 | + | ||
| 10 | + .. :: Footnotes | ||
| 11 | + | ||
| 12 | + .. [#f1] ``$XDG_CONFIG_HOME`` defaults to ``~/.config`` if not set. | ||
| 10 | 13 | ||
| 11 | 14 | General | |
| 12 | 15 | ------- | |
| 13 | - This refers to the ``[general]`` section in your `~/.bpython/config` file. | ||
| 16 | + This refers to the ``[general]`` section in your `$XDG_CONFIG_HOME/bpython/config` file. | ||
| 14 | 17 | ||
| 15 | 18 | auto_display_list | |
| 16 | 19 | ^^^^^^^^^^^^^^^^^ | |
@@ -52,6 +55,8 @@ pastebin_private | |||
| 52 | 55 | If the pastebin supports a private option to make a random paste id, use it. | |
| 53 | 56 | Default: True). | |
| 54 | 57 | ||
| 58 | + .. versionadded:: 0.12 | ||
| 59 | + | ||
| 55 | 60 | pastebin_show_url | |
| 56 | 61 | ^^^^^^^^^^^^^^^^^ | |
| 57 | 62 | The url under which the new paste can be reached. ``$paste_id`` will be | |
@@ -68,18 +73,20 @@ its output. The data is supplied to the helper via STDIN. | |||
| 68 | 73 | ||
| 69 | 74 | An example helper program is ``pastebinit``, available for most systems. | |
| 70 | 75 | ||
| 76 | + .. versionadded:: 0.12 | ||
| 77 | + | ||
| 71 | 78 | .. _configuration_color_scheme: | |
| 72 | 79 | ||
| 73 | 80 | color_scheme | |
| 74 | 81 | ^^^^^^^^^^^^ | |
| 75 | 82 | See :ref:`themes` for more information. | |
| 76 | 83 | ||
| 77 | - Color schemes should be put in ``~/.bpython/`` | ||
| 84 | + Color schemes should be put in ``$XDG_CONFIG_HOME/bpython/`` | ||
| 78 | 85 | ||
| 79 | - e.g to use the theme ``~/.bpython/foo.theme`` set ``color_scheme = foo`` | ||
| 86 | + e.g to use the theme ``$XDG_CONFIG_HOME/bpython/foo.theme`` set ``color_scheme = foo`` | ||
| 80 | 87 | ||
| 81 | 88 | If you set the colorscheme to `foo` this will be translated to | |
| 82 | - ``~/.bpython/foo.theme`` so be sure to put the file in that directory. | ||
| 89 | + ``$XDG_CONFIG_HOME/bpython/foo.theme`` so be sure to put the file in that directory. | ||
| 83 | 90 | ||
| 84 | 91 | Leave blank or set to "default" to use the default (builtin) theme. | |
| 85 | 92 | ||
@@ -89,13 +96,13 @@ Whether to flush all output to stdout on exit (default: True). | |||
| 89 | 96 | ||
| 90 | 97 | Keyboard | |
| 91 | 98 | -------- | |
| 92 | - This section refers to the ``[keyboard]`` section in your ``~/.bpython/config``. | ||
| 99 | + This section refers to the ``[keyboard]`` section in your ``$XDG_CONFIG_HOME/bpython/config``. | ||
| 93 | 100 | ||
| 94 | 101 | You can set various keyboard shortcuts to be used by bpython. However, we have yet to map all keys | |
| 95 | 102 | to their respective control codes. If you configure a key combination which is not yet supported | |
| 96 | 103 | by bpython it will raise an exception telling you the key does not exist in bpython.keys. | |
| 97 | 104 | ||
| 98 | - Valid keys are: | ||
| 105 | + Valid keys are: | ||
| 99 | 106 | ||
| 100 | 107 | * Control + any alphanumeric character (C-a through A-z, also a few others). | |
| 101 | 108 | * Any function key ranging from F1 to F12. | |
@@ -190,7 +197,7 @@ The width of the suggestion window in percent of the terminal width. | |||
| 190 | 197 | ||
| 191 | 198 | GTK | |
| 192 | 199 | --- | |
| 193 | - This refers to the ``[gtk]`` section in your `~/.bpython/config` file. | ||
| 200 | + This refers to the ``[gtk]`` section in your `$XDG_CONFIG_HOME/bpython/config` file. | ||
| 194 | 201 | ||
| 195 | 202 | font | |
| 196 | 203 | ^^^^ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments