2016-05-14 18:22:04 -04:00
|
|
|
#
|
|
|
|
# zim_update - update the zim repository
|
|
|
|
#
|
|
|
|
|
2016-09-02 21:28:29 -04:00
|
|
|
cd ${ZDOTDIR:-${HOME}/.zim}
|
2016-05-14 18:22:04 -04:00
|
|
|
|
2017-01-21 11:25:30 -05:00
|
|
|
# this is the cleanest way I know how to update a repository
|
2016-05-14 18:22:04 -04:00
|
|
|
git remote update -p
|
|
|
|
git merge --ff-only @\{u\}
|
|
|
|
# and update the submodules
|
2017-01-21 11:25:30 -05:00
|
|
|
git submodule update --init --recursive
|
2017-03-26 04:53:56 -04:00
|
|
|
|
|
|
|
# return to previous directory after update
|
|
|
|
cd ~-
|