Skip to content

Commit

Permalink
feat: add devcontainers configuration (ohmyzsh#12783)
Browse files Browse the repository at this point in the history
Co-authored-by: Vatsal Gupta <40350810+gvatsal60@users.noreply.github.com>
  • Loading branch information
mcornella and gvatsal60 authored Oct 27, 2024
1 parent fa64758 commit c690f73
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
}
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ indent_style = space

[*.py]
indent_size = 4

[devcontainer.json]
indent_size = 4
indent_style = tab
5 changes: 5 additions & 0 deletions templates/minimal.zshrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(git)

source $ZSH/oh-my-zsh.sh
2 changes: 1 addition & 1 deletion templates/zshrc.zsh-template
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH

# Path to your Oh My Zsh installation.
export ZSH=$HOME/.oh-my-zsh
export ZSH="$HOME/.oh-my-zsh"

# Set name of the theme to load --- if set to "random", it will
# load a random theme each time Oh My Zsh is loaded, in which case,
Expand Down

0 comments on commit c690f73

Please sign in to comment.