move update code into function

This commit is contained in:
Nicole O'Connor 2020-11-17 15:44:13 -08:00
parent a1ef62f661
commit 78f2496c20

View File

@ -1,3 +1,4 @@
function zeesh_update () {
if type git &> /dev/null && (( _zeesh_fresh_install != 1 )); then
ticker_message "zeesh: pulling from git" # TODO: less frequently, and background
start_dir="$(pwd)"
@ -19,3 +20,6 @@ if type git &> /dev/null && (( _zeesh_fresh_install != 1 )); then
[[ _zshrc_updates_pending -eq 1 ]] && ticker_message "zeesh: stub updates pending"
fi
}
zeesh_update