Show More
@@ -22,6 +22,11 b" def p4_f(self, parameter_s=''):" | |||
|
22 | 22 | |
|
23 | 23 | return out |
|
24 | 24 | |
|
25 | def p4d(fname): | |
|
26 | return os.popen('p4 where ' + fname).read().split()[0] | |
|
27 | ||
|
28 | ip.to_user_ns("p4d") | |
|
29 | ||
|
25 | 30 | ip.expose_magic('p4', p4_f) |
|
26 | 31 | |
|
27 | 32 | p4_commands = """\ |
@@ -38,10 +38,10 b' def main():' | |||
|
38 | 38 | ip.ex('import os') |
|
39 | 39 | ip.ex("def up(): os.chdir('..')") |
|
40 | 40 | |
|
41 | # Get pysh-like prompt for all profiles. | |
|
41 | # Nice prompt | |
|
42 | 42 | |
|
43 |
o.prompt_in1= '\C_LightBlue[\C_LightCyan\Y |
|
|
44 | o.prompt_in2= '\C_Green|\C_LightGreen\D\C_Green> ' | |
|
43 | o.prompt_in1= r'\C_LightBlue[\C_LightCyan\Y2\C_LightBlue]\C_Green|\#> ' | |
|
44 | o.prompt_in2= r'\C_Green|\C_LightGreen\D\C_Green> ' | |
|
45 | 45 | o.prompt_out= '<\#> ' |
|
46 | 46 | |
|
47 | 47 | from IPython import Release |
General Comments 0
You need to be logged in to leave comments.
Login now