mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-30 22:54:14 +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:
		| @@ -14,7 +14,7 @@ class Bash(Generic): | |||||||
|                 " eval $TF_CMD".format(fuck) |                 " eval $TF_CMD".format(fuck) | ||||||
|  |  | ||||||
|         if settings.alter_history: |         if settings.alter_history: | ||||||
|             return alias + " && history -s $TF_CMD'" |             return alias + "; history -s $TF_CMD'" | ||||||
|         else: |         else: | ||||||
|             return alias + "'" |             return alias + "'" | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user