Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderilyin committed Aug 22, 2024
1 parent 80437b8 commit a2dc749
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
}
},
"features": {
"ghcr.io/deep-space-cartel/devcontainers-features/starship:1.1.0": {},
"ghcr.io/deep-space-cartel/devcontainers-features/starship:1": {},
"ghcr.io/deep-space-cartel/devcontainers-features/apt:1": {
"packages": "shellcheck shfmt mc python3-pip python3-venv"
},
Expand Down
26 changes: 20 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The minimal, blazing-fast, and infinitely customizable prompt for any shell!

* <https://starship.rs/>

```jsonc
```json
{
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
Expand All @@ -32,6 +32,8 @@ The minimal, blazing-fast, and infinitely customizable prompt for any shell!
}
```

Since `starship` is managed by configuration files in `$HOME` consider using the following repo to automate the process or fork it and adjust to your liking.

```json
{
"customizations": {
Expand All @@ -44,6 +46,19 @@ The minimal, blazing-fast, and infinitely customizable prompt for any shell!
}
```

If you are using `devcontainers-features/apt` as well then you might have to add `bash-completion` to list of the packages.

```json
{
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"ghcr.io/deep-space-cartel/devcontainers-features/starship:latest": {
"version": "latest"
}
}
}
```

In order to configure fonts install them in your OS:

* <https://www.nerdfonts.com/font-downloads>
Expand Down Expand Up @@ -115,7 +130,7 @@ Upload packages
```bash
devcontainer features publish --namespace deep-space-cartel/devcontainers-features src/
``
```
Generate docs:
Expand All @@ -125,7 +140,6 @@ devcontainer features generate-docs --namespace deep-space-cartel/devcontainers-
## TODO
* Go to [github.com/devcontainers/devcontainers.github.io](https://github.com/devcontainers/devcontainers.github.io)
* This is the GitHub repo backing the [containers.dev](https://containers.dev/) spec site
* Open a PR to modify the [collection-index.yml](https://github.com/devcontainers/devcontainers.github.io/blob/gh-pages/_data/collection-index.yml) file
* Integrate `starship completions $(basename $SHELL)`
* [ ] [Update collection-index.yml #453](https://github.com/devcontainers/devcontainers.github.io/pull/453).
* [ ] Integrate `starship completions $(basename $SHELL)`.
* [ ] Extract `bash-completion` installation into `utils` package.

0 comments on commit a2dc749

Please sign in to comment.