1
0
Fork 0
mirror of synced 2024-11-13 19:48:58 -05:00
zimfw/tools/zim_update

14 lines
308 B
Text

#
# zim_update - update the zim repository
#
cd ${ZDOTDIR:-${HOME}/.zim}
# this is the cleanest way I know how to update a repository
git remote update -p
git merge --ff-only @\{u\}
# and update the submodules
git submodule update --init --recursive
# return to previous directory after update
cd $OLDPWD