HomeBrewなど一式アップグレードshell関数

「~/.zshrc」にこんな感じで関数を作ってます。

function brewupgrade() {
    echo "Homebrewを更新しています..."
    brew update && brew upgrade && brew cleanup && brew autoremove
    echo "GUIアプリケーションも更新しています..."
    brew upgrade --cask --greedy
    echo "Homebrewの更新が完了しました!"
    echo "app を更新しています..."
    mas upgrade
    echo "app の更新が完了しました!"
    echo "brew doctor"
    brew doctor
}

実行方法は、

brewupgrade

で簡単に実行できます。

READ MORE

ITerm2で起動時にTip of the Dayを出さない

iTerm2で起動時に左上に表示される「Tip of the Day(今日のTip)」を非表示にする方法

Term2の環境設定の[Advanced]タブ内に「Tip of the Day」セクションがあるので、 「Disable the Tip of the Day?」項目がデフォルトだと「No」になっているので「Yes」に変更する。

READ MORE