From 9de340b99fd1cf71ec9183682b72a52d7552e520 Mon Sep 17 00:00:00 2001 From: Jamie Martin Date: Thu, 1 Aug 2024 16:51:53 +0100 Subject: [PATCH] change calling of script --- zsh-in-docker.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/zsh-in-docker.sh b/zsh-in-docker.sh index 993b293..1640ce5 100755 --- a/zsh-in-docker.sh +++ b/zsh-in-docker.sh @@ -165,9 +165,14 @@ fi cd /tmp -# Install On-My-Zsh +# Install Oh My Zsh if [ ! -d "$TARGET_HOME/.oh-my-zsh" ]; then - su - $TARGET_USER -c 'sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" "" --unattended' + su - $TARGET_USER -c ' + export HOME="'"$TARGET_HOME"'" + export USER="'"$TARGET_USER"'" + export ZDOTDIR="$HOME" + sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended + ' fi # Generate plugin list