문제

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