move update code into function
This commit is contained in:
parent
a1ef62f661
commit
78f2496c20
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user