1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-14 06:38:32 +00:00

Also delete 'fuck' from history

This commit is contained in:
David 2020-04-17 16:19:28 +01:00
parent 3cb2821884
commit 0016943ecf

View File

@ -51,7 +51,9 @@ class Fish(Generic):
def app_alias(self, alias_name):
if settings.alter_history:
alter_history = (' builtin history delete --exact'
' --case-sensitive -- $fucked_up_command\n')
' --case-sensitive -- $fucked_up_command\n'
' builtin history delete --exact'
' --case-sensitive -- {0}\n').format(alias_name)
else:
alter_history = ''
# It is VERY important to have the variables declared WITHIN the alias