mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-13 22:28:33 +00:00
bash: always honor alter_history setting
This ensures that even if the command suggested and run by `thefuck` fails, it will still be added to the history, allowing the user to tweak it further (or run `fuck` again) if desired. Note that the fish shell appears to already behave this way.
This commit is contained in:
parent
cb99e42e02
commit
b519d317f7
@ -14,7 +14,7 @@ class Bash(Generic):
|
||||
" eval $TF_CMD".format(fuck)
|
||||
|
||||
if settings.alter_history:
|
||||
return alias + " && history -s $TF_CMD'"
|
||||
return alias + "; history -s $TF_CMD'"
|
||||
else:
|
||||
return alias + "'"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user