Skip to content

Commit 6837f12

Browse files
committed
Use new config to disable OhMyZsh auto update
There's a new method: https://github.com/ohmyzsh/ohmyzsh/wiki/Settings#deprecated-settings
1 parent e3e3ed7 commit 6837f12

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/common-utils/main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ if [ "${INSTALL_ZSH}" = "true" ]; then
558558
# Add devcontainer .zshrc template
559559
if [ "$INSTALL_OH_MY_ZSH_CONFIG" = "true" ]; then
560560
if ! [ -f "${template_path}" ] || ! grep -qF "$(head -n 1 "${template_path}")" "${user_rc_file}"; then
561-
echo -e "$(cat "${template_path}")\nDISABLE_AUTO_UPDATE=true\nDISABLE_UPDATE_PROMPT=true" > ${user_rc_file}
561+
echo -e "$(cat "${template_path}")\nzstyle ':omz:update' mode disabled" > ${user_rc_file}
562562
fi
563563
sed -i -e 's/ZSH_THEME=.*/ZSH_THEME="devcontainers"/g' ${user_rc_file}
564564
fi

0 commit comments

Comments
 (0)