From b519d317f74374eb9b197a56277e44697ac1764d Mon Sep 17 00:00:00 2001 From: Joseph Frazier <1212jtraceur@gmail.com> Date: Sun, 30 Oct 2016 22:56:15 -0400 Subject: [PATCH] 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. --- thefuck/shells/bash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thefuck/shells/bash.py b/thefuck/shells/bash.py index 8f4e0e1c..d6f4cdff 100644 --- a/thefuck/shells/bash.py +++ b/thefuck/shells/bash.py @@ -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 + "'"