From a6b5d5dde28a85439f90ee2d08b605f54417721f 2007-05-23 21:02:21 From: vivainio Date: 2007-05-23 21:02:21 Subject: [PATCH] clean up sh profile banner --- diff --git a/IPython/UserConfig/ipy_profile_sh.py b/IPython/UserConfig/ipy_profile_sh.py index 9b4987d..7eb4f2b 100644 --- a/IPython/UserConfig/ipy_profile_sh.py +++ b/IPython/UserConfig/ipy_profile_sh.py @@ -49,7 +49,7 @@ def main(): import sys # I like my banner minimal. - o.banner = "Py %s IPy %s\n" % (sys.version.split('\n')[0],Release.version) + o.banner = "IPython %s [on Py %s]\n" % (Release.version,sys.version.split(None,1)[0]) # make 'd' an alias for ls -F @@ -92,8 +92,13 @@ def main(): #print "al",cmd noext, ext = os.path.splitext(cmd) ip.IP.alias_table[mapper(noext)] = (0,cmd) + + extend_shell_behavior(ip) +# XXX You do not need to understand the next function! +# This should probably be moved out of profile + def extend_shell_behavior(ip): # Instead of making signature a global variable tie it to IPSHELL.