wacky6 / ok-deploy

Composable One-Key Deploy Scripts for Ubuntu Servers
MIT License
5 stars 1 forks source link

zsh: crontab auto update is borked for omz #20

Open wacky6 opened 2 months ago

wacky6 commented 2 months ago

The naive way to run ${HOME_DIR}/.oh-my-zsh/tools/upgrade.sh in crontab doesn't work. Presumably due to some stupid safe guards in that script.

Maybe just git fetch origin then git reset --hard origin/main in ~/.oh-my-zsh repo to avoid the non-sense parts.

Should also consider disabling update check or find something better (to not block shell startup).

wacky6 commented 2 months ago

https://stackoverflow.com/questions/11378607/oh-my-zsh-disable-would-you-like-to-check-for-updates-prompt has inspiration.