build(devcontainer): add omz plugins & verify extension signature

VSCode fixed signature validation hangs in v1.90
This commit is contained in:
Cotes Chung 2024-06-08 00:45:59 +08:00
parent cf853f14e4
commit f1d35832f4
No known key found for this signature in database
GPG key ID: 0D9E54843167A808
2 changed files with 9 additions and 3 deletions

View file

@ -6,9 +6,7 @@
"customizations": { "customizations": {
"vscode": { "vscode": {
"settings": { "settings": {
"terminal.integrated.defaultProfile.linux": "zsh", "terminal.integrated.defaultProfile.linux": "zsh"
// Speed up extension installation
"extensions.verifySignature": false
}, },
"extensions": [ "extensions": [
// Liquid tags auto-complete // Liquid tags auto-complete

View file

@ -8,3 +8,11 @@ fi
# Install dependencies for shfmt extension # Install dependencies for shfmt extension
curl -sS https://webi.sh/shfmt | sh &>/dev/null curl -sS https://webi.sh/shfmt | sh &>/dev/null
# Add OMZ plugins
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
sed -i -E "s/^(plugins=\()(git)(\))/\1\2 zsh-syntax-highlighting zsh-autosuggestions\3/" ~/.zshrc
# Avoid git log use less
echo -e "\nunset LESS" >>~/.zshrc