Skip to content

Commit

Permalink
add navi feature
Browse files Browse the repository at this point in the history
  • Loading branch information
cirolosapio committed Oct 2, 2023
1 parent 2df0982 commit c7b2c77
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/alpine-navi/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "alpine-navi",
"id": "alpine-navi",
"version": "0.0.1",
"description": "Installs navi on alpine",
"documentationURL": "https://github.com/cirolosapio/devcontainers-features/tree/main/src/alpine-navi",
"options": {
"initZsh": {
"type": "boolean",
"default": true,
"description": "Init zsh configs"
}
}
}
15 changes: 15 additions & 0 deletions src/alpine-navi/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh

set -e

echo "Activating feature 'alpine-navi'"

apk --no-cache add skim
apk --no-cache add navi --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing

# if $INITZSH is true, then add navi to zshrc
if [[ $INITZSH == "true" ]]; then
echo $'\neval "$(navi widget zsh)"' >> $_CONTAINER_USER_HOME/.zshrc
fi

echo 'Done!'

0 comments on commit c7b2c77

Please sign in to comment.