/
xddxdd
/
Python
Обзор
Документация
Войти
/
xddxdd
/
Python
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
.devcontainer/post_install
29 строк
1010 B
Bertrand Awenze
Fix devcontainer build failure (#12837)
09 июл 2025, 15:25
Не верифицирован
09 июл 2025, 15:25
ed7c9b5
Код
Авторство
О чём код?
#!/usr/bin/env bash echo "Begin post-installation steps..." set -e echo "Installing pre-commit hooks..." pre-commit install echo "Installing Oh My Zsh plugins..." # Install zsh-autosuggestions if not present if [ ! -d "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions" ]; then echo "Cloning zsh-autosuggestions..." git clone https://github.com/zsh-users/zsh-autosuggestions \ "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions" fi # Install zsh-syntax-highlighting if not present if [ ! -d "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting" ]; then echo "Cloning zsh-syntax-highlighting..." git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \ "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting" fi echo "Configuring plugins in ~/.zshrc..." sed -i '/^plugins=/c\plugins=(git zsh-autosuggestions zsh-syntax-highlighting)' ~/.zshrc echo "Post-installation steps completed successfully. Enjoy!"