1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-31 10:11:14 +00:00

#N/A: Remove enabled_by_default = True from rules

This commit is contained in:
Vladimir Iakovlev 2017-10-08 16:27:23 +02:00
parent 6362c37eec
commit 78a9d52df0
4 changed files with 1 additions and 10 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -10,6 +10,3 @@ def match(command):
def get_new_command(command):
return replace_argument(command.script, 'set-url', 'add')
enabled_by_default = True