summaryrefslogtreecommitdiff
path: root/.devcontainer/devcontainer.json
diff options
context:
space:
mode:
authorMarc Cornellà <marc@mcornella.com>2024-10-27 20:46:46 +0100
committerGitHub <noreply@github.com>2024-10-27 20:46:46 +0100
commitc690f731618959cba3b85500acee20ebf43e51c1 (patch)
tree5bc2f859ee8e700bd975c9a2c845bbd90eb26c67 /.devcontainer/devcontainer.json
parentfa64758aeaeb17abdefca5d193c1002230048977 (diff)
downloadzsh-c690f731618959cba3b85500acee20ebf43e51c1.tar.gz
zsh-c690f731618959cba3b85500acee20ebf43e51c1.tar.bz2
zsh-c690f731618959cba3b85500acee20ebf43e51c1.zip
feat: add `devcontainers` configuration (#12783)
Co-authored-by: Vatsal Gupta <40350810+gvatsal60@users.noreply.github.com>
Diffstat (limited to '.devcontainer/devcontainer.json')
-rw-r--r--.devcontainer/devcontainer.json20
1 files changed, 20 insertions, 0 deletions
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
new file mode 100644
index 000000000..d3ad1a3a7
--- /dev/null
+++ b/.devcontainer/devcontainer.json
@@ -0,0 +1,20 @@
+{
+ "image": "mcr.microsoft.com/devcontainers/base:noble",
+ "features": {
+ "ghcr.io/devcontainers/features/common-utils": {
+ "installZsh": true,
+ "configureZshAsDefaultShell": true,
+ "username": "vscode",
+ "userUid": 1000,
+ "userGid": 1000
+ }
+ },
+ "postCreateCommand": "dir=/workspaces/ohmyzsh; rm -rf $HOME/.oh-my-zsh && ln -s $dir $HOME/.oh-my-zsh && cp $dir/templates/minimal.zshrc $HOME/.zshrc && chgrp -R 1000 $dir && chmod g-w,o-w $dir",
+ "customizations": {
+ "codespaces": {
+ "openFiles": [
+ "README.md"
+ ]
+ }
+ }
+}