chiark / gitweb /
chpwd: Put `user' into template arguments when run from command-line.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 16 Mar 2013 00:29:40 +0000 (00:29 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 16 Mar 2013 00:29:40 +0000 (00:29 +0000)
chpwd

diff --git a/chpwd b/chpwd
index 3872715..65ae873 100755 (executable)
--- a/chpwd
+++ b/chpwd
@@ -279,6 +279,7 @@ if __name__ == '__main__':
       ctx = OPTS.context
       if OPTS.user:
         CU.set_user(OPTS.user)
+        CGI.STATE.kw['user'] = OPTS.user
         if ctx is None: ctx = 'userv'
       else:
         D.opendb()