Skip to content

Commit

Permalink
Update devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
daizutabi committed Oct 14, 2024
1 parent 4c8cfed commit 0db1dda
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"image": "mcr.microsoft.com/vscode/devcontainers/python:3.12",
"image": "mcr.microsoft.com/vscode/devcontainers/base:ubuntu24.04",
"features": {
"ghcr.io/devcontainers-contrib/features/starship:1": {},
"ghcr.io/va-h/devcontainers-features/uv:1": {}
"ghcr.io/devcontainers-contrib/features/starship:1": {}
},
"customizations": {
"vscode": {
"extensions": [
"charliermarsh.ruff",
"fill-labs.dependi",
"ms-python.python",
"ms-python.vscode-pylance"
"ms-python.vscode-pylance",
"tamasfe.even-better-toml"
]
}
},
Expand Down
9 changes: 7 additions & 2 deletions .devcontainer/postCreate.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/sh
#!/bin/bash

echo 'eval "$(starship init bash)"' >> ~/.bashrc
echo "alias ll='ls -alF'" >> ~/.bashrc
mkdir -p ~/.config
cp .devcontainer/starship.toml ~/.config
cp .devcontainer/starship.toml ~/.config

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/uv/releases/download/0.4.20/uv-installer.sh | sh
source $HOME/.cargo/env
echo 'eval "$(uv generate-shell-completion bash)"' >> ~/.bashrc

0 comments on commit 0db1dda

Please sign in to comment.