mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-20 01:28:56 +00:00
Also delete 'fuck' from history
This commit is contained in:
parent
3cb2821884
commit
0016943ecf
@ -51,7 +51,9 @@ class Fish(Generic):
|
|||||||
def app_alias(self, alias_name):
|
def app_alias(self, alias_name):
|
||||||
if settings.alter_history:
|
if settings.alter_history:
|
||||||
alter_history = (' builtin history delete --exact'
|
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:
|
else:
|
||||||
alter_history = ''
|
alter_history = ''
|
||||||
# It is VERY important to have the variables declared WITHIN the alias
|
# It is VERY important to have the variables declared WITHIN the alias
|
||||||
|
Loading…
x
Reference in New Issue
Block a user