Show More
@@ -35,8 +35,6 b" def persist_env(self, parameter_s=''):" | |||
|
35 | 35 | %env -p - print all persistent env modifications |
|
36 | 36 | """ |
|
37 | 37 | |
|
38 | ||
|
39 | ||
|
40 | 38 | if not parameter_s.strip(): |
|
41 | 39 | return os.environ.data |
|
42 | 40 | |
@@ -83,7 +81,10 b" def persist_env(self, parameter_s=''):" | |||
|
83 | 81 | |
|
84 | 82 | db['stored_env'] = env |
|
85 | 83 | |
|
86 | ||
|
87 | ||
|
84 | def env_completer(self,event): | |
|
85 | """ Custom completer that lists all env vars """ | |
|
86 | return os.environ.keys() | |
|
88 | 87 | |
|
89 | 88 | ip.expose_magic('env', persist_env) |
|
89 | ip.set_hook('complete_command',env_completer, str_key = '%env') | |
|
90 |
General Comments 0
You need to be logged in to leave comments.
Login now