mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-13 22:28:33 +00:00
Add support for oh-my-zsh's shortcut for "git push".
This commit is contained in:
parent
938f1df035
commit
ad2c00fcaa
@ -1,7 +1,7 @@
|
||||
def match(command, settings):
|
||||
return ('git' in command.script
|
||||
and 'push' in command.script
|
||||
and 'set-upstream' in command.stderr)
|
||||
is_git = ('git' in command.script and 'push' in command.script) or \
|
||||
'gp' in command.script
|
||||
return (is_git and 'set-upstream' in command.stderr)
|
||||
|
||||
|
||||
def get_new_command(command, settings):
|
||||
|
Loading…
x
Reference in New Issue
Block a user