Cask upgrade should dry run.
This commit is contained in:
parent
2b62d0bfd6
commit
6d18ab972b
2 changed files with 5 additions and 1 deletions
|
@ -23,6 +23,7 @@ setopt HIST_REDUCE_BLANKS
|
|||
setopt HIST_SAVE_NO_DUPS
|
||||
setopt INC_APPEND_HISTORY
|
||||
setopt SHARE_HISTORY
|
||||
setopt RMSTARSILENT
|
||||
rm -rf "${ZDOTDIR}/.zsh_history" && ln -sf "${XDG_DATA_HOME}/zsh/history" "${ZDOTDIR}/.zsh_history"
|
||||
|
||||
# set path
|
||||
|
|
|
@ -70,8 +70,11 @@ function ud() {
|
|||
|
||||
function upgrade() {
|
||||
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/*
|
||||
brew upgrade --cask --greedy -f --dry-run
|
||||
elif [ $(uname -s) = "FreeBSD" ]; then
|
||||
pkg update -f
|
||||
pkg upgrade
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue