Make the environment a setting

This would allow other rules to set the environment as needed for
`@git_support` and `GIT_TRACE`.
This commit is contained in:
mcarton
2015-07-17 00:09:33 +02:00
parent b3e09d68df
commit 707d91200e
3 changed files with 12 additions and 7 deletions
+2 -1
View File
@@ -30,7 +30,8 @@ DEFAULT_SETTINGS = {'rules': DEFAULT_RULES,
'require_confirmation': False,
'no_colors': False,
'debug': False,
'priority': {}}
'priority': {},
'env': {'LANG': 'C', 'GIT_TRACE': '1'}}
ENV_TO_ATTR = {'THEFUCK_RULES': 'rules',
'THEFUCK_WAIT_COMMAND': 'wait_command',