Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions src/starship/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
{
"id": "starship",
"version": "0.1.6",
"version": "0.2.0-a1",
"name": "Starship",
"description": "The minimal, blazing-fast, and infinitely customizable prompt for any shell!",
"dependsOn": {"ghcr.io/devcontainers/features/common-utils:2": {}}
"dependsOn": {
"ghcr.io/devcontainers/features/common-utils:2": {}
},
"postCreateCommand": "mkdir -p ${HOME}/.config && cp /usr/local/share/.config/starship.toml $HOME/.config/starship.toml",
"options": {
"character": {
"type": "string",
"default": "",
"description": "Key/value pairs for `character` configuration table.",
"proposals": ["success_symbol = '[➜](bold green)', error_symbol = '[✗](bold red) '"]
}
}
}
5 changes: 4 additions & 1 deletion src/starship/install.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/env bash
#!/usr/bin/env bash

curl -sS https://starship.rs/install.sh | sh -s -- -y

mkdir -p /usr/local/share/.config
echo "character = { $CHARACTER }" >> /usr/local/share/.config/starship.toml
13 changes: 13 additions & 0 deletions test/starship/change_prompt_symbol.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

set -e

source dev-container-features-test-lib

env


check "success symbol modified" starship print-config character | grep ➜
check "error symbol modified" starship print-config character | grep ✗

reportResults
11 changes: 11 additions & 0 deletions test/starship/scenarios.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"change_prompt_symbol": {
"image": "ubuntu:focal",
"features": {
"starship": {
"character": "success_symbol = '[➜](bold green)', error_symbol = '[✗](bold red) '"
}
},
"remoteUser": "testUserFoo"
}
}