1
0
Fork 0
mirror of synced 2024-06-02 23:31:11 -04:00
zimfw/tools/zim_update
Thiago Kenji Okada 3e60ae9950 init.zsh: Allow arbitrary ZIM location
This change allow arbitrary ZIM location path by setting a new
environment variable, ZIM_PATH. If the user does not set it, ZIM falls
back to the old "${ZDOTDIR:-${HOME}}/.zim" location.
2017-08-12 01:07:52 +00:00

12 lines
239 B
Plaintext

#
# zim_update - update the zim repository
#
cd ${ZIM_HOME}
# 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