medains / dotfiles

Unix/OS X user configuration files
0 stars 0 forks source link

Easy way to update vim bundles #1

Open medains opened 6 years ago

medains commented 6 years ago

Keeping up to date on software is a constant battle.

Need to script updates of:

medains commented 6 years ago

Steps needed: git pull --recurse-submodules #updates Vundle vim -T dumb -e -c "set nomore" +PluginUpdate +qall # updates other plugins (if Vundle wasn't a submodule this could manage Vundle too) brew update # pull latest brew recipes brew outdated # show brews needing upgrade brew upgrade # upgrade those brews brew cask outdated # show casks needing upgrade brew cask upgrade # install new versions

Might need the sudo trick to avoid 'brew cask upgrade' having to ask for permission

Ask for the administrator password upfront

sudo -v

Keep-alive: update existing sudo time stamp until .macos has finished

while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &

(from https://github.com/mathiasbynens/dotfiles/blob/master/.macos)