1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-06-19 15:28:32 +02:00

updater: add vim plugins update

This commit is contained in:
bretello 2021-04-12 09:58:57 +02:00
parent 98604c6a4c
commit 926bb413a4
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

View File

@ -25,12 +25,13 @@ function current_epoch() {
}
function _update_dotfiles_update() {
echo "LAST_EPOCH=$(current_epoch)" >! "${DOTFILES}/.dotfiles-update"
echo "LAST_EPOCH=$(current_epoch)" >! "${DOTFILES_UPDATEFILE}"
}
function update_dotfiles() {
(cd $DOTFILES; git pull -q --rebase && echo "Succesfully upgraded dotfiles" || echo "Could not upgrade dotfiles.")
antibody update
vim -c 'PlugUpdate|PlugClean|qa!'
# update the zsh file
_update_dotfiles_update
}