Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 39f44d0

Browse files
closed #41 - disable ohymyzsh auto update
1 parent 95331b0 commit 39f44d0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

raspberry-pi/image-setup/firstboot.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ chsh -s /bin/zsh pi
1414
chsh -s /bin/zsh
1515
# install ohmyzsh for root and pi users
1616
sudo -u pi sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
17-
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
18-
17+
sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
18+
# disable ohmyzsh auto update
19+
sed -i 's/# DISABLE_AUTO_UPDATE="true"/DISABLE_AUTO_UPDATE="true"/g' /home/pi/.zshrc
20+
sed -i 's/# DISABLE_AUTO_UPDATE="true"/DISABLE_AUTO_UPDATE="true"/g' /root/.zshrc
1921

2022
# install drivers for adafruit screen
2123
wget https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/adafruit-pitft.sh

0 commit comments

Comments
 (0)