#682: Allow THEFUCK_INSTANT_MODE=False

This commit is contained in:
Vladimir Iakovlev
2017-08-26 13:21:24 +02:00
parent 7a57355e7e
commit b72ad2907f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ class Bash(Generic):
if settings.alter_history else ''))
def instant_mode_alias(self, alias_name):
if os.environ.get('THEFUCK_INSTANT_MODE'):
if os.environ.get('THEFUCK_INSTANT_MODE', '').lower() == 'true':
return '''
export PS1="{user_command_mark}$PS1";
{app_alias}
+1 -1
View File
@@ -28,7 +28,7 @@ class Zsh(Generic):
if settings.alter_history else ''))
def instant_mode_alias(self, alias_name):
if os.environ.get('THEFUCK_INSTANT_MODE'):
if os.environ.get('THEFUCK_INSTANT_MODE', '').lower() == 'true':
return '''
export PS1="{user_command_mark}$PS1";
{app_alias}