Skip to content

Instantly share code, notes, and snippets.

@BoyanXu
Last active March 8, 2022 16:29
Show Gist options
  • Save BoyanXu/7610070c6d7042b9107ef68de805f0f2 to your computer and use it in GitHub Desktop.
Save BoyanXu/7610070c6d7042b9107ef68de805f0f2 to your computer and use it in GitHub Desktop.
Get Homebrew Installed Formulae's Cellar path
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