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