mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-19 04:21:14 +00:00
#635: Show "Nothing found" instead of 'No fucks given' when different alias are used
This commit is contained in:
parent
79602383ec
commit
1b05a497e8
@ -4,6 +4,7 @@ import sys
|
|||||||
from .conf import settings
|
from .conf import settings
|
||||||
from .exceptions import NoRuleMatched
|
from .exceptions import NoRuleMatched
|
||||||
from .system import get_key
|
from .system import get_key
|
||||||
|
from .utils import get_alias
|
||||||
from . import logs, const
|
from . import logs, const
|
||||||
|
|
||||||
|
|
||||||
@ -69,7 +70,8 @@ def select_command(corrected_commands):
|
|||||||
try:
|
try:
|
||||||
selector = CommandSelector(corrected_commands)
|
selector = CommandSelector(corrected_commands)
|
||||||
except NoRuleMatched:
|
except NoRuleMatched:
|
||||||
logs.failed('No fucks given')
|
logs.failed('No fucks given' if get_alias() == 'fuck'
|
||||||
|
else 'Nothing found')
|
||||||
return
|
return
|
||||||
|
|
||||||
if not settings.require_confirmation:
|
if not settings.require_confirmation:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user