#577: Use builtin history in Fish function

Fix #577
This commit is contained in:
Pablo Santiago Blum de Aguiar
2016-11-17 22:57:11 -02:00
parent 785cb83ff3
commit a947259eef
2 changed files with 7 additions and 6 deletions
+3 -2
View File
@@ -20,8 +20,9 @@ class Fish(Generic):
def app_alias(self, fuck):
if settings.alter_history:
alter_history = (' history --delete $fucked_up_command\n'
' history --merge ^ /dev/null\n')
alter_history = (' builtin history delete --exact'
' --case-sensitive -- $fucked_up_command\n'
' builtin history merge ^ /dev/null\n')
else:
alter_history = ''
# It is VERY important to have the variables declared WITHIN the alias