mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-14 06:38:32 +00:00
consistency with quotes and use for_app
This commit is contained in:
parent
9a91f6cc70
commit
958f8a0b3a
@ -1,12 +1,13 @@
|
||||
import re
|
||||
from thefuck.utils import replace_command
|
||||
from thefuck.utils import replace_command, for_app
|
||||
|
||||
|
||||
@for_app("conda")
|
||||
def match(command):
|
||||
'''
|
||||
"""
|
||||
Match a mistyped command
|
||||
'''
|
||||
return 'conda' in command.script and "Did you mean 'conda" in command.output
|
||||
"""
|
||||
return "conda" in command.script and "Did you mean 'conda" in command.output
|
||||
|
||||
|
||||
def get_new_command(command):
|
||||
|
Loading…
x
Reference in New Issue
Block a user