From 5a701bc9bdcc4e951f00cc275870032dda9cf854 Mon Sep 17 00:00:00 2001 From: Nate Holland Date: Fri, 17 Nov 2017 14:44:56 -0600 Subject: [PATCH] Add special error message for 'shit' alias I wanted to add a pattern for ways to make more funny aliases like No fucks given and I figured shit was a fun one to start with. --- thefuck/ui.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/thefuck/ui.py b/thefuck/ui.py index 37b14acd..a1a82aad 100644 --- a/thefuck/ui.py +++ b/thefuck/ui.py @@ -70,8 +70,14 @@ def select_command(corrected_commands): try: selector = CommandSelector(corrected_commands) except NoRuleMatched: - logs.failed('No fucks given' if get_alias() == 'fuck' - else 'Nothing found') + alias = get_alias() + if alias == 'fuck': + message = 'No fucks given' + elif alias == 'shit': + message = 'Don\'t give a shit' + else: + message = 'Nothing found' + logs.failed(message) return if not settings.require_confirmation: