#N/A: Check that brew/apt available in related rules

This commit is contained in:
nvbn
2016-02-06 16:37:11 +03:00
parent 778d5f3e6e
commit 28d078708b
8 changed files with 22 additions and 7 deletions
+4 -2
View File
@@ -1,12 +1,14 @@
import os
import re
from thefuck.utils import get_closest, replace_command
from thefuck.specific.brew import get_brew_path_prefix
from thefuck.specific.brew import get_brew_path_prefix, brew_available
BREW_CMD_PATH = '/Library/Homebrew/cmd'
TAP_PATH = '/Library/Taps'
TAP_CMD_PATH = '/%s/%s/cmd'
enabled_by_default = brew_available
def _get_brew_commands(brew_path_prefix):
"""To get brew default commands on local environment"""
@@ -53,7 +55,7 @@ def _brew_commands():
if brew_path_prefix:
try:
return _get_brew_commands(brew_path_prefix) \
+ _get_brew_tap_specific_commands(brew_path_prefix)
+ _get_brew_tap_specific_commands(brew_path_prefix)
except OSError:
pass