mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-10 04:26:17 +02:00
wip: started working on planning
This commit is contained in:
parent
11c1718983
commit
2138e2662b
3 changed files with 555 additions and 0 deletions
|
|
@ -39,6 +39,7 @@ function current_epoch() {
|
|||
echo $(( EPOCHSECONDS / 60 / 60 / 24 ))
|
||||
}
|
||||
|
||||
# TODO: change this to support stable releases
|
||||
function is_update_available() {
|
||||
local branch
|
||||
branch=${"$(builtin cd -q "$ZSH"; git config --local oh-my-zsh.branch)":-master}
|
||||
|
|
@ -211,6 +212,8 @@ function handle_update() {
|
|||
return
|
||||
fi
|
||||
|
||||
# TODO: somewhere like here we should support fast-tracking of security patches
|
||||
|
||||
# Check if there are updates available before proceeding
|
||||
if ! is_update_available; then
|
||||
update_last_updated_file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue