Browsed by
Category: Homebrew

Homebrew: fatal: Needed a single revision

Homebrew: fatal: Needed a single revision

$ brew update Checking out v1.0.1 in /usr/local/Homebrew… To checkout master in /usr/local/Homebrew run: ‘cd /usr/local/Homebrew && git checkout master Checking out v1.0.1 in /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask… To checkout master in /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask run: ‘cd /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask && git checkout master fatal: Cannot update paths and switch to branch ‘v1.0.1’ at the same time. Did you intend to checkout ‘refs/tags/1.0.1’ which can not be resolved as commit? fatal: Needed a single revision invalid upstream refs/tags/1.0.1 Checking out v1.0.1 in /usr/local/Homebrew/Library/Taps/caskroom/homebrew-versions… To checkout master in…

Read More Read More

[Unsolved] (Homebrew) Emacs.app doesn’t appear in Spotlight

[Unsolved] (Homebrew) Emacs.app doesn’t appear in Spotlight

After using brew linkapps emacs Emacs still didn’t show in Spotlight for me. I googled and found this issue https://github.com/Homebrew/legacy-homebrew/issues/4635 TL;DR nothing got fixed on the homebrew side. Caskroom puts stuff into /opt where as Homebrew puts stuff into /usr/local which is why that it works fine. According to this comment using an OS X “Alias” will fix it. But that didn’t work for me on El Capitan. Apparently moving Emacs.app may have problems due to Homebrew passing –disable-ns-self-contained Which…

Read More Read More

Order of arguments/options in Homebrew

Order of arguments/options in Homebrew

I came across this comment on Super User and wanted to see which was the correct order of arguments for brew Is it brew install –option formula or brew install forumla –option? https://trac.ffmpeg.org/wiki/CompilationGuide/MacOSX has the options listed as brew install ffmpeg –with-fdk-aac –with-ffplay –with-freetype –with-libass –with-libquvi –with-libvorbis –with-libvpx –with-opus –with-x265 and was last modified on the 1st of March 2016. However brew(1) from man shows: NAME brew – The missing package manager for OS X SYNOPSIS brew –version brew command…

Read More Read More

Search for a command in Homebrew

Search for a command in Homebrew

Two ways: brew search forumla Which is in built however won’t work if you are looking for if it’s not the name of the formula. This is my script called brew-search #!/usr/bin/env bash curl –silent –compressed https://raw.githubusercontent.com/Homebrew/homebrew-command-not-found/master/executables.txt | grep -P “^$1:|[: ]$1( |$)” | grep -Po ‘^.+(?=:)’ Which can be called by brew-search command My script works for xxd. $ brew search xxd $ brew-search xxd vim