mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-31 02:01:13 +00:00
#682: Fix PS1 on macos with zsh
This commit is contained in:
parent
78a9d52df0
commit
1ab0e80f8f
@ -31,10 +31,11 @@ class Zsh(Generic):
|
||||
|
||||
def instant_mode_alias(self, alias_name):
|
||||
if os.environ.get('THEFUCK_INSTANT_MODE', '').lower() == 'true':
|
||||
mark = USER_COMMAND_MARK + '\b' * len(USER_COMMAND_MARK)
|
||||
return '''
|
||||
export PS1="{user_command_mark}$PS1";
|
||||
{app_alias}
|
||||
'''.format(user_command_mark=USER_COMMAND_MARK,
|
||||
'''.format(user_command_mark=mark,
|
||||
app_alias=self.app_alias(alias_name))
|
||||
else:
|
||||
log_path = os.path.join(
|
||||
|
Loading…
x
Reference in New Issue
Block a user