Domanda

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

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top