mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-16 07:38:50 +00:00
16 lines
336 B
Python
16 lines
336 B
Python
import subprocess
|
|
from ..utils import memoize, which
|
|
|
|
|
|
enabled_by_default = bool(which('brew'))
|
|
|
|
|
|
@memoize
|
|
def get_brew_path_prefix():
|
|
"""To get brew path"""
|
|
try:
|
|
return subprocess.check_output(['brew', '--prefix'],
|
|
universal_newlines=True).strip()
|
|
except:
|
|
return None
|