Skip to content

Commit 75440e1

Browse files
committed
docker: Move omz installation to common.sh
Change-Id: I29b6a4f2729d5212bb259919a8274b35e529a9d6 Signed-off-by: Sushrut1101 <guptasushrut@gmail.com>
1 parent c9e631a commit 75440e1

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

arch/install_packages.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
7575
# Try to update yay
7676
sudo -u testuser yay -S --noconfirm yay
7777

78-
# zsh
79-
chsh -s /bin/zsh root
80-
sh -c "$(curl -sL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
81-
8278
# Setup systemd
8379
find /etc/systemd/system /lib/systemd/system -path '*.wants/*' -not -name '*dbus*' -not -name '*journald*' -not -name '*systemd-tmpfiles*' -not -name '*systemd-user-sessions*' -exec rm -rf {} \;
8480
systemctl set-default multi-user.target

fedora/install_packages.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ git config --global user.name Sushrut1101
4141
git config --global user.email guptasushrut@gmail.com
4242
git config --global color.ui auto
4343

44-
# zsh
45-
chsh -s /bin/zsh root
46-
curl -sL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh | sh
47-
4844
# Android build Environment
4945
bash /tmp/scripts/android_build_env.sh
5046

scripts/common.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ bash -c "$(curl -sL https://git.io/file-transfer)"
1212
mv transfer /usr/local/bin/transfer
1313
chmod +x /usr/local/bin/transfer
1414

15-
# Extra zsh plugins
15+
# Setup Oh My Zsh
16+
chsh -s /bin/zsh root
17+
bash -c "$(curl -sL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
18+
1619
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
1720
git clone https://github.com/zsh-users/zsh-syntax-highlighting ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
1821

0 commit comments

Comments
 (0)