Cask upgrade should dry run.

This commit is contained in:
Bartek Stalewski 2025-06-01 01:56:03 +02:00
parent 2b62d0bfd6
commit 6d18ab972b
No known key found for this signature in database
2 changed files with 5 additions and 1 deletions

View file

@ -23,6 +23,7 @@ setopt HIST_REDUCE_BLANKS
setopt HIST_SAVE_NO_DUPS setopt HIST_SAVE_NO_DUPS
setopt INC_APPEND_HISTORY setopt INC_APPEND_HISTORY
setopt SHARE_HISTORY setopt SHARE_HISTORY
setopt RMSTARSILENT
rm -rf "${ZDOTDIR}/.zsh_history" && ln -sf "${XDG_DATA_HOME}/zsh/history" "${ZDOTDIR}/.zsh_history" rm -rf "${ZDOTDIR}/.zsh_history" && ln -sf "${XDG_DATA_HOME}/zsh/history" "${ZDOTDIR}/.zsh_history"
# set path # set path

View file

@ -70,8 +70,11 @@ function ud() {
function upgrade() { function upgrade() {
if [ $(uname -s) = "Darwin" ]; then if [ $(uname -s) = "Darwin" ]; then
brew update && brew upgrade && brew upgrade --cask --greedy -f && brew autoremove && brew cleanup brew update
brew upgrade
brew autoremove
rm -rf ~/Library/Caches/Homebrew/* rm -rf ~/Library/Caches/Homebrew/*
brew upgrade --cask --greedy -f --dry-run
elif [ $(uname -s) = "FreeBSD" ]; then elif [ $(uname -s) = "FreeBSD" ]; then
pkg update -f pkg update -f
pkg upgrade pkg upgrade