Skip to content

Commit

Permalink
bump alpine-ohmyzsh version to 0.0.23 and update plugin handling
Browse files Browse the repository at this point in the history
  • Loading branch information
cirolosapio committed Feb 6, 2025
1 parent c8b9075 commit a74a444
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/alpine-ohmyzsh/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
{
"name": "alpine-ohmyzsh",
"id": "alpine-ohmyzsh",
"version": "0.0.22",
"version": "0.0.23",
"description": "Installs ohmyzsh on alpine",
"documentationURL": "https://github.com/cirolosapio/devcontainers-features/tree/main/src/alpine-ohmyzsh",
"installsAfter": [
"ghcr.io/cirolosapio/devcontainers-features/alpine-user",
"ghcr.io/cirolosapio/devcontainers-features/alpine-starship"
],
"options": {
"plugins": {
"defaultPlugins": {
"type": "string",
"default": "git alias-tips autoupdate zsh-autosuggestions zsh-syntax-highlighting",
"description": "Default OhMyZsh plugins to enable"
},
"plugins": {
"type": "string",
"default": "",
"description": "OhMyZsh plugins to enable"
}
}
}
}
6 changes: 6 additions & 0 deletions src/alpine-ohmyzsh/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ echo "Activating feature 'alpine-ohmyzsh'"

apk --no-cache add git zsh

if [ -z "$PLUGINS" ]; then
PLUGINS=$DEFAULTPLUGINS
else
PLUGINS="$DEFAULTPLUGINS $PLUGINS"
fi

if [ -z "$_CONTAINER_USER_HOME" ]; then
if [ -z "$_CONTAINER_USER" ]; then
_CONTAINER_USER_HOME=/root
Expand Down

0 comments on commit a74a444

Please sign in to comment.