I am using the IPython qtconsole and the directories are dark blue and I can't seem to find any way to change this in the theme. I'm using pygments with the monokai theme for the syntax highlighting.

enter image description here

有帮助吗?

解决方案

This coloring is actually done by ls itself. You can use the LSCOLORS ( on OS X / BSD, or LS_COLORS on Linux) environment variable to customize this. Here is a nifty utility for generating an LSCOLORS value. You can probably Google-about for peoples favored dark-background LSCOLORS values.

Then just set the variable, either in Python:

import os
os.environ['LSCOLORS'] = 'gxfxcxdxbxegedabagacad'

or in your shell session prior to launching IPython (or .bashrc, etc.):

$> export LSCOLORS=gxfxcxdxbxegedabagacad
$> ipython qtconsole

see also: reference docs for LS_COLORS

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top