From 832ef96188ff0ec6782fdbb9ceea729e3aa8681e Mon Sep 17 00:00:00 2001 From: Vladimir Iakovlev Date: Fri, 25 Aug 2017 11:47:17 +0200 Subject: [PATCH 1/2] #681: Lower priority of `missing_space_before_subcommand` rule --- thefuck/rules/missing_space_before_subcommand.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/thefuck/rules/missing_space_before_subcommand.py b/thefuck/rules/missing_space_before_subcommand.py index c199e03e..410cb4bc 100644 --- a/thefuck/rules/missing_space_before_subcommand.py +++ b/thefuck/rules/missing_space_before_subcommand.py @@ -16,3 +16,6 @@ def match(command): def get_new_command(command): executable = _get_executable(command.script_parts[0]) return command.script.replace(executable, u'{} '.format(executable), 1) + + +priority = 4000 From f9b30ae2d336e76d28593221d81ce5ee580dc67b Mon Sep 17 00:00:00 2001 From: Vladimir Iakovlev Date: Sat, 26 Aug 2017 04:57:16 +0200 Subject: [PATCH 2/2] #683: Mention `-y` and `-r` in the readme --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c986e052..12f9649d 100644 --- a/README.md +++ b/README.md @@ -130,10 +130,16 @@ eval $(thefuck --alias FUCK) Changes will be available only in a new shell session. To make them available immediately, run `source ~/.bashrc` (or your shell config file like `.zshrc`). -If you want separate alias for running fixed command without confirmation you can use alias like: +If you want to run fixed command without confirmation you can use `-y` option: ```bash -alias fuck-it='export THEFUCK_REQUIRE_CONFIRMATION=False; fuck; export THEFUCK_REQUIRE_CONFIRMATION=True' +fuck -y +``` + +If you want to fix commands recursively until success you can use `-r` option: + +```bash +fuck -r ``` ## Update