Show More
@@ -118,8 +118,9 b' def main():' | |||||
118 | extend_shell_behavior(ip) |
|
118 | extend_shell_behavior(ip) | |
119 |
|
119 | |||
120 | class LastArgFinder: |
|
120 | class LastArgFinder: | |
121 | """ Allow $LA work as "last argument of previous command, like $! in bash |
|
121 | """ Allow $LA to work as "last argument of previous command, like $! in bash | |
122 |
|
122 | |||
|
123 | To call this in normal IPython code, do str(LA). | |||
123 | """ |
|
124 | """ | |
124 | def __str__(self): |
|
125 | def __str__(self): | |
125 | ip = ipapi.get() |
|
126 | ip = ipapi.get() |
General Comments 0
You need to be logged in to leave comments.
Login now