mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 20:11:17 +00:00
* #1066: Add cask to list of fallback commands * #1066: Fix homebrew paths
This commit is contained in:
parent
639e9bda7a
commit
ca46956e20
@ -3,8 +3,8 @@ import re
|
|||||||
from thefuck.utils import get_closest, replace_command
|
from thefuck.utils import get_closest, replace_command
|
||||||
from thefuck.specific.brew import get_brew_path_prefix, brew_available
|
from thefuck.specific.brew import get_brew_path_prefix, brew_available
|
||||||
|
|
||||||
BREW_CMD_PATH = '/Library/Homebrew/cmd'
|
BREW_CMD_PATH = '/Homebrew/Library/Homebrew/cmd'
|
||||||
TAP_PATH = '/Library/Taps'
|
TAP_PATH = '/Homebrew/Library/Taps'
|
||||||
TAP_CMD_PATH = '/%s/%s/cmd'
|
TAP_CMD_PATH = '/%s/%s/cmd'
|
||||||
|
|
||||||
enabled_by_default = brew_available
|
enabled_by_default = brew_available
|
||||||
@ -62,7 +62,7 @@ def _brew_commands():
|
|||||||
# Failback commands for testing (Based on Homebrew 0.9.5)
|
# Failback commands for testing (Based on Homebrew 0.9.5)
|
||||||
return ['info', 'home', 'options', 'install', 'uninstall',
|
return ['info', 'home', 'options', 'install', 'uninstall',
|
||||||
'search', 'list', 'update', 'upgrade', 'pin', 'unpin',
|
'search', 'list', 'update', 'upgrade', 'pin', 'unpin',
|
||||||
'doctor', 'create', 'edit']
|
'doctor', 'create', 'edit', 'cask']
|
||||||
|
|
||||||
|
|
||||||
def match(command):
|
def match(command):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user