From 88f1fd8d01ffcbc8f8ae2df13c6c964432cd5ae2 Mon Sep 17 00:00:00 2001 From: Raine Date: Sat, 14 Oct 2023 22:38:09 +0200 Subject: [PATCH] zsh install script --- scripts/05-zsh.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 scripts/05-zsh.sh diff --git a/scripts/05-zsh.sh b/scripts/05-zsh.sh new file mode 100644 index 0000000..34b1bb6 --- /dev/null +++ b/scripts/05-zsh.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +$SUDO $PM $PM_INSTALL $PM_NOCONFIRM \ + zsh + +# install pfetch +[ -d /tmp/pfetch ] || $SUDO bash -c \ + "git clone https://github.com/dylanaraps/pfetch.git /tmp/pfetch && cd /tmp/pfetch && (chmod a+x ./pfetch && $SUDO mv ./pfetch /usr/local/pfetch)" + +# install omz +bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended || echo "zsh not installed" + +# favourite omz plugins +PL_DIR=${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions +[ -d "$PL_DIR" ] || git clone https://github.com/zsh-users/zsh-autosuggestions $PL_DIR +PL_DIR=${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting +[ -d "$PL_DIR" ] || git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $PL_DIR + +# set default shell +$SUDO usermod $USER --shell /bin/zsh \ No newline at end of file