diff --git a/thefuck/rules/dry.py b/thefuck/rules/dry.py index 86759b32..f0954ea6 100644 --- a/thefuck/rules/dry.py +++ b/thefuck/rules/dry.py @@ -5,7 +5,7 @@ def match(command, settings): def get_new_command(command, settings): - return command.script[command.script.find(' '):] + return command.script[command.script.find(' ')+1:] # it should be rare enough to actually have to type twice the same word, so # this rule can have a higher priority to come before things like "cd cd foo"