Skip to content

Instantly share code, notes, and snippets.

@zerobase
Created October 27, 2016 06:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zerobase/82b8c078a1db12af2df785bac1b3900a to your computer and use it in GitHub Desktop.
Save zerobase/82b8c078a1db12af2df785bac1b3900a to your computer and use it in GitHub Desktop.
Fix Homebrew Cask application links (one-liner for zsh)
#!/bin/zsh
src=/opt/homebrew-cask; dst=/usr/local; for f in ~/Applications/*.app; do [ -h $f ] && l=$(readlink $f); ln -sf ${l/$src/$dst} $f; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment