X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/chopwood/blobdiff_plain/ba8f1b92a88a064504ea55ac568634c56707d96c..2a875c57bf6b595d9efc776d698b348e8befdd8d:/chpwd diff --git a/chpwd b/chpwd index 5925ddd..4d70fa8 100755 --- a/chpwd +++ b/chpwd @@ -71,7 +71,8 @@ for short, long, props in [ 'help': 'run commands with the given CONTEXT' }), ('-f', '--config-file', { 'metavar': 'FILE', 'dest': 'config', - 'default': OS.path.join(HOME, 'chpwd.conf'), + 'default': ENV.get('CHPWD_CONFIG', + OS.path.join(HOME, 'chpwd.conf')), 'help': 'read configuration from FILE.' }), ('-s', '--ssl', { 'dest': 'sslp', 'action': 'store_true',