mirror of
https://github.com/nvbn/thefuck.git
synced 2025-09-21 04:32:37 +01:00
#635: Show "Nothing found" instead of 'No fucks given' when different alias are used
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user