From b937bea7f420e2bfaaecaf2ed375f6ba77d0359a Mon Sep 17 00:00:00 2001 From: cirolosapio Date: Mon, 2 Oct 2023 18:27:39 +0200 Subject: [PATCH] update --- src/alpine-ohmyzsh/devcontainer-feature.json | 2 +- src/alpine-ohmyzsh/install.sh | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/alpine-ohmyzsh/devcontainer-feature.json b/src/alpine-ohmyzsh/devcontainer-feature.json index fec4bb9..31f46f7 100644 --- a/src/alpine-ohmyzsh/devcontainer-feature.json +++ b/src/alpine-ohmyzsh/devcontainer-feature.json @@ -1,7 +1,7 @@ { "name": "alpine-ohmyzsh", "id": "alpine-ohmyzsh", - "version": "0.0.5", + "version": "0.0.6", "description": "Installs ohmyzsh on alpine", "documentationURL": "https://github.com/cirolosapio/devcontainers-features/tree/main/src/alpine-ohmyzsh", "options": { diff --git a/src/alpine-ohmyzsh/install.sh b/src/alpine-ohmyzsh/install.sh index af4a146..20e9f50 100644 --- a/src/alpine-ohmyzsh/install.sh +++ b/src/alpine-ohmyzsh/install.sh @@ -8,17 +8,16 @@ apk --no-cache add git curl zsh CURRENT_USER=$(awk -v val=1000 -F ":" '$3==val{print $1}' /etc/passwd) echo "Acting as $CURRENT_USER" -su $CURRENT_USER -curl -s https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh | sh -s +su -c "curl -s https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh | sh -s" $CURRENT_USER -git clone https://github.com/supercrabtree/k ~/.oh-my-zsh/custom/plugins/k -git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions -git clone https://github.com/zsh-users/zsh-syntax-highlighting ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting -sed -i 's/plugins=(git)/plugins=(\n git\n sudo\n k\n zsh-autosuggestions\n zsh-syntax-highlighting\n)/' ~/.zshrc +git clone https://github.com/supercrabtree/k $_CONTAINER_USER_HOME/.oh-my-zsh/custom/plugins/k +git clone https://github.com/zsh-users/zsh-autosuggestions $_CONTAINER_USER_HOME/.oh-my-zsh/custom/plugins/zsh-autosuggestions +git clone https://github.com/zsh-users/zsh-syntax-highlighting $_CONTAINER_USER_HOME/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting +sed -i 's/plugins=(git)/plugins=(\n git\n sudo\n k\n zsh-autosuggestions\n zsh-syntax-highlighting\n)/' $_CONTAINER_USER_HOME/.zshrc if [[ $INITSTARSHIP == "true" ]]; then - echo $'\neval "$(starship init zsh)"' >> ~/.zshrc + echo $'\neval "$(starship init zsh)"' >> $_CONTAINER_USER_HOME/.zshrc fi echo 'Done!' \ No newline at end of file