1
0
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:
Valentin Lorentz 2015-05-02 23:35:25 +02:00
parent 938f1df035
commit ad2c00fcaa

View File

@ -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):