[IPython-dev] User configuration in recent IPython
Fernando Perez
fperez.net at gmail.com
Fri May 14 13:44:16 EDT 2010
Hey,
On Fri, May 14, 2010 at 10:29 AM, Gael Varoquaux
<gael.varoquaux at normalesup.org> wrote:
> Hey,
>
> I have just pulled the latest IPython, and I am a bit at loss. It seems
> that it is not finding my configuration, whereas version 0.9 did. What
> the prefered way to set configuration for IPython nowadays?
sorry, I gotta run now but here's some info:
http://ipython.scipy.org/doc/nightly/html/config/overview.html
In short, my ipython_config.py reads:
import sys
c = get_config()
c.Global.exec_lines = [#'import sys, os, math',
#'ip = get_ipython()',
]
if sys.version_info[:2] >= (2,6):
c.Global.exec_files = ['extras.py']
if sys.platform=='win32':
#c.InteractiveShell.colors = 'NoColor'
pass
c.InteractiveShell.colors = 'LightBG'
c.InteractiveShell.colors = 'Linux'
c.InteractiveShell.confirm_exit = False
c.InteractiveShell.readline_omit__names = 2
c.AliasManager.user_aliases = [
('cl', 'clear'),
('clk', 'rm -f *~ .*~'),
# color ls
('d', 'ls -F -o --color'),
# ls symbolic links
('dl', 'ls -F -o --color %l | grep ^l'),
# directories or links to directories, both as alias ldalias
# and alias ldiralias in case users load the real alias ldalias linker
('dd', 'ls -F -o --color %l | grep /$'),
# things which are executable
('dx', 'ls -F -o --color %l | grep ^-..x'),
]
### EOF
I hope this helps,
f
More information about the IPython-dev
mailing list