[IPython-user] "sh" profile not loading %store'd aliases?

Christopher DeMarco demarco@maya....
Tue Sep 9 13:56:34 CDT 2008


New user, please be gentle!

    demarco@owl ~ $ ipython -p sh
    Py 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)  IPy 0.8.1
    [~]|1> alias xyzzy ls -Fh --color=yes
    [~]|2> xyzzy
    Choices/  Wallpaper/  bin/  in/  lib/  reference/  tmp/  vmware/  working/
    [~]|3> %store xyzzy
    Alias stored: xyzzy (0, 'ls -Fh --color=yes')
    [~]|4> 
    Do you really want to exit ([y]/n)? y

    demarco@owl ~ $ cat .ipython/db/stored_aliases 
    (dp1
    S'xyzzy'
    p2
    (I0
    S'ls -Fh --color=yes'
    tp3
    s.

    demarco@owl ~ $ ipython -p sh
    Py 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)  IPy 0.8.1
    [~]|1> xyzzy
    ---------------------------------------------------------------------------
    <type 'exceptions.NameError'>             Traceback (most recent call last)

    /home/demarco/<ipython console> in <module>()

    <type 'exceptions.NameError'>: name 'xyzzy' is not defined


I'm obviously missing something... 

Should %store'd aliases be loaded upon ipython startup?  By the "sh"
profile?  If so, what am I doing wrong?


-- 
Christopher DeMarco <demarco@maya.com>
IT Director
MAYA Group
+1-412-708-9660



More information about the IPython-user mailing list