Skip to content

Commit

Permalink
.aliases: Add gem cleanup to update alias
Browse files Browse the repository at this point in the history
This ensure that old gems are removed after `gem update`.

Closes mathiasbynens#705.
  • Loading branch information
meodai authored and mathiasbynens committed Sep 4, 2016
1 parent 96edd4b commit 4def07d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .aliases
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ alias week='date +%V'
alias timer='echo "Timer started. Stop with Ctrl-D." && date && time cat && date'

# Get macOS Software Updates, and update installed Ruby gems, Homebrew, npm, and their installed packages
alias update='sudo softwareupdate -i -a; brew update; brew upgrade --all; brew cleanup; npm install npm -g; npm update -g; sudo gem update --system; sudo gem update'
alias update='sudo softwareupdate -i -a; brew update; brew upgrade --all; brew cleanup; npm install npm -g; npm update -g; sudo gem update --system; sudo gem update; sudo gem cleanup'

# IP addresses
alias ip="dig +short myip.opendns.com @resolver1.opendns.com"
Expand Down

0 comments on commit 4def07d

Please sign in to comment.