From 78a9d52df0a6d37e24b38ff3cf4422004eb3158b Mon Sep 17 00:00:00 2001 From: Vladimir Iakovlev Date: Sun, 8 Oct 2017 16:27:23 +0200 Subject: [PATCH] #N/A: Remove `enabled_by_default = True` from rules --- README.md | 2 +- thefuck/rules/cd_correction.py | 3 --- thefuck/rules/git_remote_delete.py | 3 --- thefuck/rules/git_remote_seturl_add.py | 3 --- 4 files changed, 1 insertion(+), 10 deletions(-) diff --git a/README.md b/README.md index 31dc1527..fef76ffd 100644 --- a/README.md +++ b/README.md @@ -199,7 +199,7 @@ using the matched rule and runs it. Rules enabled by default are as follows: * `git_push_pull` – runs `git pull` when `push` was rejected; * `git_push_without_commits` – Creates an initial commit if you forget and only `git add .`, when setting up a new project; * `git_rebase_no_changes` – runs `git rebase --skip` instead of `git rebase --continue` when there are no changes; -* `git_remote_delete` – replaces `git remote delete remote_name` with `git remote remove remote_name` +* `git_remote_delete` – replaces `git remote delete remote_name` with `git remote remove remote_name`; * `git_rm_local_modifications` – adds `-f` or `--cached` when you try to `rm` a locally modified file; * `git_rm_recursive` – adds `-r` when you try to `rm` a directory; * `git_rm_staged` – adds `-f` or `--cached` when you try to `rm` a file with staged changes diff --git a/thefuck/rules/cd_correction.py b/thefuck/rules/cd_correction.py index 888571bd..ca3464b1 100644 --- a/thefuck/rules/cd_correction.py +++ b/thefuck/rules/cd_correction.py @@ -53,6 +53,3 @@ def get_new_command(command): else: return cd_mkdir.get_new_command(command) return u'cd "{0}"'.format(cwd) - - -enabled_by_default = True diff --git a/thefuck/rules/git_remote_delete.py b/thefuck/rules/git_remote_delete.py index 4cde87b3..ce316da1 100644 --- a/thefuck/rules/git_remote_delete.py +++ b/thefuck/rules/git_remote_delete.py @@ -10,6 +10,3 @@ def match(command): @git_support def get_new_command(command): return replace_argument(command.script, "delete", "remove") - - -enabled_by_default = True diff --git a/thefuck/rules/git_remote_seturl_add.py b/thefuck/rules/git_remote_seturl_add.py index 8be2be42..39fcc931 100644 --- a/thefuck/rules/git_remote_seturl_add.py +++ b/thefuck/rules/git_remote_seturl_add.py @@ -10,6 +10,3 @@ def match(command): def get_new_command(command): return replace_argument(command.script, 'set-url', 'add') - - -enabled_by_default = True