From ca46956e20b4bfd7424042a0f06cf206c26177fe Mon Sep 17 00:00:00 2001 From: Aditi Gupta Date: Fri, 17 Jul 2020 03:04:41 +0530 Subject: [PATCH] #1066 - Fix rule for brew cask (#1111) * #1066: Add cask to list of fallback commands * #1066: Fix homebrew paths --- thefuck/rules/brew_unknown_command.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/thefuck/rules/brew_unknown_command.py b/thefuck/rules/brew_unknown_command.py index d9cb58c7..244f48ac 100644 --- a/thefuck/rules/brew_unknown_command.py +++ b/thefuck/rules/brew_unknown_command.py @@ -3,8 +3,8 @@ import re from thefuck.utils import get_closest, replace_command from thefuck.specific.brew import get_brew_path_prefix, brew_available -BREW_CMD_PATH = '/Library/Homebrew/cmd' -TAP_PATH = '/Library/Taps' +BREW_CMD_PATH = '/Homebrew/Library/Homebrew/cmd' +TAP_PATH = '/Homebrew/Library/Taps' TAP_CMD_PATH = '/%s/%s/cmd' enabled_by_default = brew_available @@ -62,7 +62,7 @@ def _brew_commands(): # Failback commands for testing (Based on Homebrew 0.9.5) return ['info', 'home', 'options', 'install', 'uninstall', 'search', 'list', 'update', 'upgrade', 'pin', 'unpin', - 'doctor', 'create', 'edit'] + 'doctor', 'create', 'edit', 'cask'] def match(command):