Last active
March 8, 2022 16:29
-
-
Save BoyanXu/7610070c6d7042b9107ef68de805f0f2 to your computer and use it in GitHub Desktop.
Get Homebrew Installed Formulae's Cellar path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function get_brew_cellar_full_path | |
set formulae_xby $argv[1] | |
echo (brew --cellar $formulae_xby)/(brew info --json $formulae_xby | jq -r '.[0].installed[0].version') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment