chore: move vim update to own function

This commit is contained in:
Stefan Imhoff
2022-04-08 13:15:28 +02:00
parent d07e35f4a0
commit ba0dc327a8

6
zshrc
View File

@@ -79,9 +79,13 @@ bindkey -M viins '^x^j' fzf-cd-widget # (j)ump
# }}}
# {{{ *** *** Functions *** ***
# Update Vim and Plugins
function vimUpdate () {
vim +PlugUpgrade +PlugInstall +PlugClean +qall
}
# Get OS X Software Updates, and update installed Ruby gems, Homebrew, npm, and their installed packages
function update () {
nvim +PlugUpgrade +PlugInstall +PlugClean +qall
brew update && brew outdated && brew upgrade && brew cleanup
sudo gem update --system && sudo gem update && gem cleanup all
npm update npm -g