1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-06 02:41:10 +01:00

Add git_branch_list rule

This commit is contained in:
Sergey Bugaev 2015-06-01 23:52:41 +03:00
parent 3c8978784b
commit 660422806c

View 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')