mirror of
https://github.com/nvbn/thefuck.git
synced 2025-10-31 23:22:10 +00:00
Add git_branch_list rule
This commit is contained in:
10
thefuck/rules/git_branch_list.py
Normal file
10
thefuck/rules/git_branch_list.py
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
from thefuck import shells
|
||||||
|
|
||||||
|
|
||||||
|
def match(command, settings):
|
||||||
|
# catches "git branch list" in place of "git branch"
|
||||||
|
return command.script.split() == 'git branch list'.split()
|
||||||
|
|
||||||
|
|
||||||
|
def get_new_command(command, settings):
|
||||||
|
return shells.and_('git branch --delete list', 'git branch')
|
||||||
Reference in New Issue
Block a user