Skip to content

Commit

Permalink
feat: add VSCode with extensions (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdicopter authored Jan 18, 2023
1 parent 5e2b771 commit 3654b21
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .chezmoiignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ README.md
CHANGELOG.md
install.sh
.git/
LICENSE
.vscode
28 changes: 28 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"telemetry.telemetryLevel": "off",
"redhat.telemetry.enabled": false,

"files.insertFinalNewline": true,
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.detectIndentation": false,
"editor.bracketPairColorization.enabled": true,
"editor.guides.bracketPairs": "active",
"editor.formatOnSave": true,
"editor.accessibilitySupport": "off",

"workbench.colorTheme": "Atom One Dark",
"workbench.startupEditor": "none",
"workbench.iconTheme": "vscode-icons",
"terminal.integrated.fontFamily": "MesloLGS NF",
"terminal.integrated.defaultProfile.osx": "zsh",
"terminal.external.osxExec": "iTerm.app",
"vsicons.dontShowNewVersionMessage": true,

"prettier.bracketSpacing": false,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[yaml]": {
"editor.defaultFormatter": "redhat.vscode-yaml"
},
"better-comments.multilineComments": true,
}
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ I am using the [Powerlevel10k](https://github.com/romkatv/powerlevel10k) theme.
- [aliases](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/aliases)
- [command-not-found](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/command-not-found)
- [common-aliases](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/common-aliases)
- [copyfile](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/copyfile) - [docker-compose](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/docker-compose)
- [copyfile](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/copyfile)
- [docker-compose](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/docker-compose)
- [docker](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/docker)
- [encode64](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/encode64)
- [extract](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/extract)
Expand All @@ -121,4 +122,20 @@ I am using the [Powerlevel10k](https://github.com/romkatv/powerlevel10k) theme.
- [terraform](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/terraform)
- [thefuck](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/thefuck)
- [vscode](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/vscode)
- [web-search](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/web-search)
- [web-search](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/web-search)

## VSCode

### Extensions

- [Atom One Dark Theme](https://marketplace.visualstudio.com/items?itemName=akamud.vscode-theme-onedark)
- [TODO Highlight](https://marketplace.visualstudio.com/items?itemName=wayou.vscode-todo-highlight)
- [vscode-icons](https://marketplace.visualstudio.com/items?itemName=vscode-icons-team.vscode-icons)
- [markdownlint](https://marketplace.visualstudio.com/items?itemName=DavidAnson.vscode-markdownlint)
- [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)
- [Markdown Emoji](https://marketplace.visualstudio.com/items?itemName=bierner.markdown-emoji)
- [Better Comments](https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments)
- [ShellCheck](https://marketplace.visualstudio.com/items?itemName=timonwong.shellcheck)
- [JSON Crack](https://marketplace.visualstudio.com/items?itemName=aykutsarac.jsoncrack-vscode)
- [Gitlab Workflow](https://marketplace.visualstudio.com/items?itemName=GitLab.gitlab-workflow)
- [YAML](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml)
2 changes: 1 addition & 1 deletion dot_zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ HIST_STAMPS="dd.mm.yyyy"
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(aliases command-not-found common-aliases copyfile docker encode64 extract genpass gh git gpg-agent helm kubectl macos terraform thefuck vscode web-search)
plugins=(aliases command-not-found common-aliases copyfile docker-compose docker encode64 extract genpass gh git gpg-agent helm kubectl macos terraform thefuck vscode web-search)

source $ZSH/oh-my-zsh.sh

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ .chezmoi.sourceDir }}/.vscode/settings.json
23 changes: 23 additions & 0 deletions run_once_before_10_vscode.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

extensions=(
akamud.vscode-theme-onedark
wayou.vscode-todo-highlight
vscode-icons-team.vscode-icons
DavidAnson.vscode-markdownlint
esbenp.prettier-vscode
bierner.markdown-emoji
aaron-bond.better-comments
timonwong.shellcheck
aykutsarac.jsoncrack-vscode
GitLab.gitlab-workflow
redhat.vscode-yaml
)

if ! [ -x "$(command -v code)" ]; then
echo 'Error: code is not installed.' >&2
else
for ext in "${extensions[@]}"; do
code --install-extension "$ext"
done
fi

0 comments on commit 3654b21

Please sign in to comment.