mirror of
https://github.com/nvbn/thefuck.git
synced 2025-04-19 17:20:39 +01:00
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.
This commit is contained in:
parent
d582159670
commit
5a701bc9bd
@ -70,8 +70,14 @@ def select_command(corrected_commands):
|
|||||||
try:
|
try:
|
||||||
selector = CommandSelector(corrected_commands)
|
selector = CommandSelector(corrected_commands)
|
||||||
except NoRuleMatched:
|
except NoRuleMatched:
|
||||||
logs.failed('No fucks given' if get_alias() == 'fuck'
|
alias = get_alias()
|
||||||
else 'Nothing found')
|
if alias == 'fuck':
|
||||||
|
message = 'No fucks given'
|
||||||
|
elif alias == 'shit':
|
||||||
|
message = 'Don\'t give a shit'
|
||||||
|
else:
|
||||||
|
message = 'Nothing found'
|
||||||
|
logs.failed(message)
|
||||||
return
|
return
|
||||||
|
|
||||||
if not settings.require_confirmation:
|
if not settings.require_confirmation:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user