-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2df0982
commit c7b2c77
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!' |