From 6cdc2c27fb98b2989ae34c9c508ca30a5e3459ef Mon Sep 17 00:00:00 2001 From: nvbn Date: Sun, 10 May 2015 09:35:02 +0200 Subject: [PATCH] #179 /c++1/cpp11/s --- README.md | 2 +- thefuck/rules/{c++11.py => cpp11.py} | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) rename thefuck/rules/{c++11.py => cpp11.py} (80%) diff --git a/README.md b/README.md index 24d9e76..75f06d9 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ The Fuck tries to match rule for the previous command, create new command using matched rule and run it. Rules enabled by default: * `brew_unknown_command` – fixes wrong brew commands, for example `brew docto/brew doctor`; -* `c++11` – add missing `-std=c++11` to `g++` or `clang++`; +* `cpp11` – add missing `-std=c++11` to `g++` or `clang++`; * `cd_parent` – changes `cd..` to `cd ..`; * `cd_mkdir` – creates directories before cd'ing into them; * `cp_omitting_directory` – adds `-a` when you `cp` directory; diff --git a/thefuck/rules/c++11.py b/thefuck/rules/cpp11.py similarity index 80% rename from thefuck/rules/c++11.py rename to thefuck/rules/cpp11.py index f4d8ab5..154abab 100644 --- a/thefuck/rules/c++11.py +++ b/thefuck/rules/cpp11.py @@ -2,9 +2,7 @@ def match(command, settings): return (('g++' in command.script or 'clang++' in command.script) and ('This file requires compiler and library support for the ' 'ISO C++ 2011 standard.' in command.stderr or - '-Wc++11-extensions' in command.stderr - ) - ) + '-Wc++11-extensions' in command.stderr)) def get_new_command(command, settings):