More than 1 year has passed since last update.

追記: 今更ながら'16/9以降のNot installedに依存しない更新に対応しました。

brew upgradeではhomebrew-caskでインストールしたapp達は更新されないので、次のfunctionで。

brew-cask-upgrade(){ for app in $(brew cask list); do local latest="$(brew cask info "${app}" | awk 'NR==1{print $2}')"; local versions=($(ls -1 "/usr/local/Caskroom/${app}/.metadata/")); local current=$(echo ${versions} | awk '{print $NF}'); if [[ "${latest}" = "latest" ]]; then echo "[!] ${app}: ${current} == ${latest}"; [[ "$1" = "-f" ]] && brew cask install "${app}" --force; continue; elif [[ "${current}" = "${latest}" ]]; then continue; fi; echo "[+] ${app}: ${current} -> ${latest}"; brew cask uninstall "${app}" --force; brew cask install "${app}"; done; }

bash, zshで動作確認済です。
brew-cask-upgrade -fとするとバージョンがlatestで固まっているパッケージも強制上書きします。

Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.