From 07b9aba0d0b21d4b52f471bc2c7403ad4b484d19 Mon Sep 17 00:00:00 2001 From: Alexander Kozhevnikov Date: Thu, 23 Apr 2015 10:29:34 +0300 Subject: [PATCH] MacOSX specific message Patch for understanding macosx message. Example case: ``` [10:24:48][bethrezen@bethrezen-mac ~]$ apachectl graceful This operation requires root. [10:24:54][bethrezen@bethrezen-mac ~]$ fuck No fuck given ``` --- thefuck/rules/sudo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/thefuck/rules/sudo.py b/thefuck/rules/sudo.py index 2c985796..2588ee57 100644 --- a/thefuck/rules/sudo.py +++ b/thefuck/rules/sudo.py @@ -6,6 +6,7 @@ patterns = ['permission denied', 'Operation not permitted', 'root privilege', 'This command has to be run under the root user.', + 'This operation requires root.', 'You need to be root to perform this command.']