From 074a67e7ebfe3eb066d1bcaf2460798d2d80975a Mon Sep 17 00:00:00 2001 From: spekulaas Date: Tue, 27 Sep 2022 15:24:20 +0200 Subject: [PATCH] test ohmyzsh --- install.sh | 2 +- src/Oh-My-ZSH.sh | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 4166034..b43b6a4 100755 --- a/install.sh +++ b/install.sh @@ -43,7 +43,7 @@ zsh_prompt() { if [[ ${zshOption,,} = "n" ]]; then return elif [[ ${zshOption,,} = "y" ]]; then - sh ../applications/Oh-MY-ZSH.sh + sh src/Oh-My-ZSH.sh fi } diff --git a/src/Oh-My-ZSH.sh b/src/Oh-My-ZSH.sh index 65a4beb..099b481 100644 --- a/src/Oh-My-ZSH.sh +++ b/src/Oh-My-ZSH.sh @@ -1,9 +1,12 @@ # install ZSH -sudo apt install zsh -y +sudo apt-get update +sudo apt-get install zsh -y -# Get oh my zsh and switch to zsh -wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh -cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc +# Set ZSH as standard interface +chsh -s $(which zsh) | 0 + +# Get oh my zsh +sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" # recompile zsh source ~/.zshrc \ No newline at end of file