mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-30 22:54:14 +00:00 
			
		
		
		
	#N/A: Remove enabled_by_default = True from rules
				
					
				
			This commit is contained in:
		| @@ -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_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_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_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_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_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 | * `git_rm_staged` –  adds `-f` or `--cached` when you try to `rm` a file with staged changes | ||||||
|   | |||||||
| @@ -53,6 +53,3 @@ def get_new_command(command): | |||||||
|         else: |         else: | ||||||
|             return cd_mkdir.get_new_command(command) |             return cd_mkdir.get_new_command(command) | ||||||
|     return u'cd "{0}"'.format(cwd) |     return u'cd "{0}"'.format(cwd) | ||||||
|  |  | ||||||
|  |  | ||||||
| enabled_by_default = True |  | ||||||
|   | |||||||
| @@ -10,6 +10,3 @@ def match(command): | |||||||
| @git_support | @git_support | ||||||
| def get_new_command(command): | def get_new_command(command): | ||||||
|     return replace_argument(command.script, "delete", "remove") |     return replace_argument(command.script, "delete", "remove") | ||||||
|  |  | ||||||
|  |  | ||||||
| enabled_by_default = True |  | ||||||
|   | |||||||
| @@ -10,6 +10,3 @@ def match(command): | |||||||
|  |  | ||||||
| def get_new_command(command): | def get_new_command(command): | ||||||
|     return replace_argument(command.script, 'set-url', 'add') |     return replace_argument(command.script, 'set-url', 'add') | ||||||
|  |  | ||||||
|  |  | ||||||
| enabled_by_default = True |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user