From aca3fe1b2f1171c3e6f43574215e16552eb58fa4 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 10 Jul 2023 20:50:01 +0900 Subject: [PATCH] feat : Replace 'status' with 'git status',which is a common mistake beginners makes --- thefuck/rules/git-status-no-git.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 thefuck/rules/git-status-no-git.py diff --git a/thefuck/rules/git-status-no-git.py b/thefuck/rules/git-status-no-git.py new file mode 100644 index 0000000..54bbd3e --- /dev/null +++ b/thefuck/rules/git-status-no-git.py @@ -0,0 +1,11 @@ +def match(command): + + return ( + command.script == "status" + ) + + + + +def get_new_command(command): + return (command.script.replace("status","git status",1)) \ No newline at end of file