Skip to content

Commit

Permalink
add two feature
Browse files Browse the repository at this point in the history
  • Loading branch information
cirolosapio committed Oct 1, 2023
1 parent 0d08def commit 1a098bf
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/alpine-gh-cli/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "alpine-gh-cli",
"id": "alpine-gh-cli",
"version": "0.0.1",
"description": "Installs Github CLI on alpine",
"documentationURL": "https://github.com/cirolosapio/devcontainers-features/tree/main/src/alpine-gh-cli"
}
10 changes: 10 additions & 0 deletions src/alpine-gh-cli/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

set -e

echo "Activating feature 'alpine-gh-cli'"

# apk --no-cache add github-cli --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing
apk --no-cache add github-cli

echo 'Done!'
7 changes: 7 additions & 0 deletions src/alpine-nushell/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "alpine-nushell",
"id": "alpine-nushell",
"version": "0.0.1",
"description": "Installs nushell on alpine",
"documentationURL": "https://github.com/cirolosapio/devcontainers-features/tree/main/src/alpine-nushell"
}
16 changes: 16 additions & 0 deletions src/alpine-nushell/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

set -e

echo "Activating feature 'alpine-nushell'"

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

mkdir -p $_CONTAINER_USER_HOME/.config/nushell/
wget -q https://raw.githubusercontent.com/nushell/nushell/main/crates/nu-utils/src/sample_config/default_config.nu -O $_CONTAINER_USER_HOME/.config/nushell/config.nu
wget -q https://raw.githubusercontent.com/nushell/nushell/main/crates/nu-utils/src/sample_config/default_env.nu -O $_CONTAINER_USER_HOME/.config/nushell/env.nu

echo $'\nmkdir ~/.cache/starship\nstarship init nu | save -f ~/.cache/starship/init.nu' >> $_CONTAINER_USER_HOME/.config/nushell/env.nu
echo $'\nsource ~/.cache/starship/init.nu' >> $_CONTAINER_USER_HOME/.config/nushell/config.nu

echo 'Done!'

0 comments on commit 1a098bf

Please sign in to comment.