From 1b05a497e89178e2d6dbc0b941e9bc40c80c7e84 Mon Sep 17 00:00:00 2001 From: Vladimir Iakovlev Date: Wed, 10 May 2017 15:22:26 +0200 Subject: [PATCH] #635: Show "Nothing found" instead of 'No fucks given' when different alias are used --- thefuck/ui.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/thefuck/ui.py b/thefuck/ui.py index d30f74d9..221f5238 100644 --- a/thefuck/ui.py +++ b/thefuck/ui.py @@ -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: