##// END OF EJS Templates
Fix pysh profile
fperez -
Show More
@@ -5,7 +5,7 b' We define a special input line filter to allow typing lines which begin with'
5 '~', '/' or '.'. If one of those strings is encountered, it is automatically
5 '~', '/' or '.'. If one of those strings is encountered, it is automatically
6 executed.
6 executed.
7
7
8 $Id: InterpreterExec.py 1121 2006-02-01 21:12:20Z vivainio $"""
8 $Id: InterpreterExec.py 2724 2007-09-07 08:05:38Z fperez $"""
9
9
10 #*****************************************************************************
10 #*****************************************************************************
11 # Copyright (C) 2004 W.J. van der Laan <gnufnork@hetdigitalegat.nl>
11 # Copyright (C) 2004 W.J. van der Laan <gnufnork@hetdigitalegat.nl>
@@ -241,18 +241,7 b" __IPYTHON__.default_option('cd','-q')"
241
241
242 # This is redundant, ipy_user_conf.py will determine this
242 # This is redundant, ipy_user_conf.py will determine this
243 # Load all of $PATH as aliases
243 # Load all of $PATH as aliases
244 if os.name == 'posix':
244 __IPYTHON__.magic_rehashx()
245 # # %rehash is very fast, but it doesn't check for executability, it simply
246 # # dumps everything in $PATH as an alias. Use rehashx if you want more
247 # # checks.
248 __IPYTHON__.magic_rehash()
249 else:
250 # # Windows users: the list of extensions considered executable is read from
251 # # the environment variable 'pathext'. If this is undefined, IPython
252 # # defaults to EXE, COM and BAT.
253 # # %rehashx is the one which does extension analysis, at the cost of
254 # # being much slower than %rehash.
255 __IPYTHON__.magic_rehashx()
256
245
257 # Remove %sc,%sx if present as aliases
246 # Remove %sc,%sx if present as aliases
258 __IPYTHON__.magic_unalias('sc')
247 __IPYTHON__.magic_unalias('sc')
General Comments 0
You need to be logged in to leave comments. Login now