diff --git a/src/alpine-gh-cli/devcontainer-feature.json b/src/alpine-gh-cli/devcontainer-feature.json new file mode 100644 index 0000000..849bbe6 --- /dev/null +++ b/src/alpine-gh-cli/devcontainer-feature.json @@ -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" +} \ No newline at end of file diff --git a/src/alpine-gh-cli/install.sh b/src/alpine-gh-cli/install.sh new file mode 100644 index 0000000..c23a631 --- /dev/null +++ b/src/alpine-gh-cli/install.sh @@ -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!' \ No newline at end of file diff --git a/src/alpine-nushell/devcontainer-feature.json b/src/alpine-nushell/devcontainer-feature.json new file mode 100644 index 0000000..dac42b4 --- /dev/null +++ b/src/alpine-nushell/devcontainer-feature.json @@ -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" +} \ No newline at end of file diff --git a/src/alpine-nushell/install.sh b/src/alpine-nushell/install.sh new file mode 100644 index 0000000..65b07de --- /dev/null +++ b/src/alpine-nushell/install.sh @@ -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!' \ No newline at end of file