1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-18 20:11:17 +00:00

#635: Show "Nothing found" instead of 'No fucks given' when different alias are used

This commit is contained in:
Vladimir Iakovlev 2017-05-10 15:22:26 +02:00
parent 79602383ec
commit 1b05a497e8

View File

@ -4,6 +4,7 @@ import sys
from .conf import settings
from .exceptions import NoRuleMatched
from .system import get_key
from .utils import get_alias
from . import logs, const
@ -69,7 +70,8 @@ def select_command(corrected_commands):
try:
selector = CommandSelector(corrected_commands)
except NoRuleMatched:
logs.failed('No fucks given')
logs.failed('No fucks given' if get_alias() == 'fuck'
else 'Nothing found')
return
if not settings.require_confirmation: