2020-04-21 16:58:05 -07:00
|
|
|
if type git &> /dev/null && (( _zeesh_fresh_install != 1 )); then
|
2020-04-21 16:39:58 -07:00
|
|
|
ticker_message "zeesh: pulling from git" # TODO: less frequently, and background
|
|
|
|
start_dir="$(pwd)"
|
|
|
|
|
|
|
|
cd ~/.local/share/zeesh
|
|
|
|
git pull &> ~/.local/share/zeesh/pull.log
|
|
|
|
|
|
|
|
cd "${start_dir}"
|
2020-04-21 16:53:57 -07:00
|
|
|
|
|
|
|
_zshrc_updates_pending=0
|
|
|
|
|
|
|
|
if type md5sum &> /dev/null; then
|
|
|
|
cmp -s ~/.zshrc ~/.local/share/zeesh/zshrc-stub
|
|
|
|
if [[ $? -eq 1 ]]; then
|
|
|
|
cp ~/.local/share/zeesh/zshrc-stub ~/.zshrc
|
|
|
|
_zshrc_updates_pending=1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2020-04-21 17:00:10 -07:00
|
|
|
[[ _zshrc_updates_pending -eq 1 ]] && ticker_message "zeesh: stub updates pending"
|
2020-04-21 16:39:58 -07:00
|
|
|
fi
|