Show More
@@ -54,7 +54,7 b' def main():' | |||||
54 |
|
54 | |||
55 | # make 'd' an alias for ls -F |
|
55 | # make 'd' an alias for ls -F | |
56 |
|
56 | |||
57 | ip.magic('alias d ls -F --color=auto') |
|
57 | # ip.magic('alias d ls -F --color=auto') | |
58 |
|
58 | |||
59 | ip.IP.default_option('cd','-q') |
|
59 | ip.IP.default_option('cd','-q') | |
60 |
|
60 | |||
@@ -95,8 +95,7 b' def main():' | |||||
95 | ip.IP.alias_table[mapper(noext)] = (0,cmd) |
|
95 | ip.IP.alias_table[mapper(noext)] = (0,cmd) | |
96 |
|
96 | |||
97 | # mglob combines 'find', recursion, exclusion... '%mglob?' to learn more |
|
97 | # mglob combines 'find', recursion, exclusion... '%mglob?' to learn more | |
98 |
i |
|
98 | ip.load("IPython.external.mglob") | |
99 | IPython.external.mglob.ipython_install() |
|
|||
100 |
|
99 | |||
101 | extend_shell_behavior(ip) |
|
100 | extend_shell_behavior(ip) | |
102 |
|
101 |
@@ -190,10 +190,8 b' def mglob_f(self, arg):' | |||||
190 | print "Please specify pattern!" |
|
190 | print "Please specify pattern!" | |
191 | print globsyntax |
|
191 | print globsyntax | |
192 |
|
192 | |||
193 |
def ipython |
|
193 | def init_ipython(ip): | |
194 | """ register %mglob for IPython """ |
|
194 | """ register %mglob for IPython """ | |
195 | import IPython.ipapi |
|
|||
196 | ip = IPython.ipapi.get() |
|
|||
197 | mglob_f.__doc__ = globsyntax |
|
195 | mglob_f.__doc__ = globsyntax | |
198 | ip.expose_magic("mglob",mglob_f) |
|
196 | ip.expose_magic("mglob",mglob_f) | |
199 |
|
197 |
General Comments 0
You need to be logged in to leave comments.
Login now