Skip to content

Instantly share code, notes, and snippets.

@kk6
Created November 1, 2018 06:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kk6/c89fbca34997a60c5af87d21b390ff0f to your computer and use it in GitHub Desktop.
Save kk6/c89fbca34997a60c5af87d21b390ff0f to your computer and use it in GitHub Desktop.
ptpythonの設定(~/.ptpython/config.py)
# Source: https://github.com/jonathanslenders/ptpython/blob/master/examples/ptpython_config/config.py
# Pygments CSS Themes: http://jwarby.github.io/jekyll-pygments-themes/languages/python.html
def configure(repl):
repl.vi_mode = True
repl.confirm_exit = False
repl.highlight_matching_parenthesis = True
repl.color_depth = "DEPTH_24_BIT"
repl.use_code_colorscheme("native")
@kk6
Copy link
Author

kk6 commented Nov 1, 2018

カラースキームがデフォルトだと自分の環境では見づらかったので変えてみた。

ソースコード読んでみたらPygmentsのテーマなら呼び出せるみたいだったのでなんかいい感じでテーマ一覧できるサイトないかなと探したら2行目のURLが見つかった。便利。

あとついでにexamplesのconfig.py見ながら好みの設定追加した。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment