mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-22 12:58:33 +00:00
#682: Fix appearance of PS1
in bash
This commit is contained in:
parent
e33960b193
commit
84f6d2631e
@ -31,10 +31,11 @@ class Bash(Generic):
|
|||||||
|
|
||||||
def instant_mode_alias(self, alias_name):
|
def instant_mode_alias(self, alias_name):
|
||||||
if os.environ.get('THEFUCK_INSTANT_MODE', '').lower() == 'true':
|
if os.environ.get('THEFUCK_INSTANT_MODE', '').lower() == 'true':
|
||||||
|
mark = USER_COMMAND_MARK + '\b' * len(USER_COMMAND_MARK)
|
||||||
return '''
|
return '''
|
||||||
export PS1="{user_command_mark}$PS1";
|
export PS1="{user_command_mark}$PS1";
|
||||||
{app_alias}
|
{app_alias}
|
||||||
'''.format(user_command_mark=USER_COMMAND_MARK,
|
'''.format(user_command_mark=mark,
|
||||||
app_alias=self.app_alias(alias_name))
|
app_alias=self.app_alias(alias_name))
|
||||||
else:
|
else:
|
||||||
return '''
|
return '''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user