##// END OF EJS Templates
%env completer
vivainio -
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
@@ -82,8 +80,11 b" def persist_env(self, parameter_s=''):"
82 80 os.environ[k] = v
83 81
84 82 db['stored_env'] = env
85
86 83
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
@@ -11,6 +11,8 b''
11 11 trivial custom completers
12 12
13 13 * clearcmd.py: shadow history compression & erasing
14
15 * envpersist.py, history.py: %env (sh profile only), %hist completers
14 16
15 17 2007-08-21 Ville Vainio <vivainio@gmail.com>
16 18
General Comments 0
You need to be logged in to leave comments. Login now