##// END OF EJS Templates
%env completer
vivainio -
Show More
@@ -35,8 +35,6 b" def persist_env(self, parameter_s=''):"
35 %env -p - print all persistent env modifications
35 %env -p - print all persistent env modifications
36 """
36 """
37
37
38
39
40 if not parameter_s.strip():
38 if not parameter_s.strip():
41 return os.environ.data
39 return os.environ.data
42
40
@@ -83,7 +81,10 b" def persist_env(self, parameter_s=''):"
83
81
84 db['stored_env'] = env
82 db['stored_env'] = env
85
83
86
84 def env_completer(self,event):
87
85 """ Custom completer that lists all env vars """
86 return os.environ.keys()
88
87
89 ip.expose_magic('env', persist_env)
88 ip.expose_magic('env', persist_env)
89 ip.set_hook('complete_command',env_completer, str_key = '%env')
90
@@ -12,6 +12,8 b''
12
12
13 * clearcmd.py: shadow history compression & erasing
13 * clearcmd.py: shadow history compression & erasing
14
14
15 * envpersist.py, history.py: %env (sh profile only), %hist completers
16
15 2007-08-21 Ville Vainio <vivainio@gmail.com>
17 2007-08-21 Ville Vainio <vivainio@gmail.com>
16
18
17 * ipmaker.py: finding ipythonrc-PROF now skips ipy_profile_PROF.
19 * ipmaker.py: finding ipythonrc-PROF now skips ipy_profile_PROF.
General Comments 0
You need to be logged in to leave comments. Login now