code-server-zsh update/add workflows

This commit is contained in:
aptalca
2023-05-17 16:43:04 -04:00
parent 3bca2f0325
commit bb996d370e
7 changed files with 62 additions and 75 deletions
-3
View File
@@ -1,3 +0,0 @@
#!/usr/bin/with-contenv bash
apt-get update
-21
View File
@@ -1,21 +0,0 @@
#!/usr/bin/with-contenv bash
# Install ZSH
echo "**** Installing zsh ****"
apt-get install -y \
zsh
# Install oh-my-zsh if not installed already
if [ -d /config/.oh-my-zsh ]; then
echo "**** Oh My Zsh is already installed. You can update it via \"omz update\" in terminal. ****"
elif [ -d /.oh-my-zsh ]; then
echo "**** Installing Oh My Zsh. You can update it via \"omz update\" in terminal. ****"
mv /.oh-my-zsh /config/.oh-my-zsh
cp /config/.oh-my-zsh/templates/zshrc.zsh-template /config/.zshrc
else
echo "**** It looks like Oh My Zsh was manually deleted after install. Please recreate the code-server container to reinstall Oh My Zsh. ****"
fi
chown -R abc:abc \
/config/.oh-my-zsh \
/config/.zshrc
@@ -18,6 +18,6 @@ else
echo "**** It looks like Oh My Zsh was manually deleted after install. Please recreate the code-server container to reinstall Oh My Zsh. ****"
fi
chown -R abc:abc \
lsiown -R abc:abc \
/config/.oh-my-zsh \
/config/.zshrc