From ef5dcb64d8403a9b5200b484a917f36e153567b6 Mon Sep 17 00:00:00 2001 From: Molier Date: Fri, 29 Nov 2024 11:26:33 +0000 Subject: [PATCH] chore: forced line endings to be LF --- .devcontainer/devcontainer.json | 2 ++ .devcontainer/post-install.sh | 16 +++++++--------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index f3a20b2..a4c45a5 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -4,6 +4,8 @@ "features": {}, "postCreateCommand": "zsh -l .devcontainer/post-install.sh", // "postStartCommand": "", + "workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/${localWorkspaceFolderBasename},type=bind,consistency=cached", + "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", "remoteUser": "root", "customizations": { "vscode": { diff --git a/.devcontainer/post-install.sh b/.devcontainer/post-install.sh index cd03f72..f24aba1 100644 --- a/.devcontainer/post-install.sh +++ b/.devcontainer/post-install.sh @@ -11,14 +11,12 @@ poetry install # Install pre-commit hooks pre-commit install -# Install Node.js and Pure prompt -# nvm install node -# npm install --global pure-prompt +# Install ZSH plugins +git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions +git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting -# # Configure Zsh to use Pure prompt -# "autoload -U promptinit; promptinit; prompt pure" -# "echo "autoload -U promptinit; promptinit; prompt pure" >> ~/.zshrc" +# Update .zshrc to enable plugins +sed -i 's/plugins=(git)/plugins=(git zsh-autosuggestions zsh-syntax-highlighting)/' ~/.zshrc -# # Uncomment the following line to install zsh-syntax-highlighting -# # sudo apt-get install zsh-syntax-highlighting -# # echo "source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc +# Source the updated configuration +source ~/.zshrc