Skip to content

Instantly share code, notes, and snippets.

@atomicstack
Created March 27, 2022 07:25
Show Gist options
  • Save atomicstack/7a3d6c85758119cb5b30f040173eaec4 to your computer and use it in GitHub Desktop.
Save atomicstack/7a3d6c85758119cb5b30f040173eaec4 to your computer and use it in GitHub Desktop.

Revisions

  1. atomicstack created this gist Mar 27, 2022.
    3 changes: 3 additions & 0 deletions brew-active-path.zsh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    function brew-active-path() {
    brew info "$1" | perl -naE 'm/[*]$/ and say($F[0])'
    }