Created
October 27, 2016 06:26
-
-
Save zerobase/82b8c078a1db12af2df785bac1b3900a to your computer and use it in GitHub Desktop.
Fix Homebrew Cask application links (one-liner for zsh)
This file contains hidden or 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
#!/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