mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-22 12:58:33 +00:00
#682: Allow THEFUCK_INSTANT_MODE=False
This commit is contained in:
parent
7a57355e7e
commit
b72ad2907f
@ -29,7 +29,7 @@ class Bash(Generic):
|
|||||||
if settings.alter_history else ''))
|
if settings.alter_history else ''))
|
||||||
|
|
||||||
def instant_mode_alias(self, alias_name):
|
def instant_mode_alias(self, alias_name):
|
||||||
if os.environ.get('THEFUCK_INSTANT_MODE'):
|
if os.environ.get('THEFUCK_INSTANT_MODE', '').lower() == 'true':
|
||||||
return '''
|
return '''
|
||||||
export PS1="{user_command_mark}$PS1";
|
export PS1="{user_command_mark}$PS1";
|
||||||
{app_alias}
|
{app_alias}
|
||||||
|
@ -28,7 +28,7 @@ class Zsh(Generic):
|
|||||||
if settings.alter_history else ''))
|
if settings.alter_history else ''))
|
||||||
|
|
||||||
def instant_mode_alias(self, alias_name):
|
def instant_mode_alias(self, alias_name):
|
||||||
if os.environ.get('THEFUCK_INSTANT_MODE'):
|
if os.environ.get('THEFUCK_INSTANT_MODE', '').lower() == 'true':
|
||||||
return '''
|
return '''
|
||||||
export PS1="{user_command_mark}$PS1";
|
export PS1="{user_command_mark}$PS1";
|
||||||
{app_alias}
|
{app_alias}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user