File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ echo " Begin post-installation steps..."
4+
5+ set -e
6+
7+ echo " Installing pre-commit hooks..."
8+ pre-commit install
9+
10+ echo " Installing Oh My Zsh plugins..."
11+
12+ # Install zsh-autosuggestions if not present
13+ if [ ! -d " ${ZSH_CUSTOM:- $HOME / .oh-my-zsh/ custom} /plugins/zsh-autosuggestions" ]; then
14+ echo " Cloning zsh-autosuggestions..."
15+ git clone https://github.com/zsh-users/zsh-autosuggestions \
16+ " ${ZSH_CUSTOM:- $HOME / .oh-my-zsh/ custom} /plugins/zsh-autosuggestions"
17+ fi
18+
19+ # Install zsh-syntax-highlighting if not present
20+ if [ ! -d " ${ZSH_CUSTOM:- $HOME / .oh-my-zsh/ custom} /plugins/zsh-syntax-highlighting" ]; then
21+ echo " Cloning zsh-syntax-highlighting..."
22+ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \
23+ " ${ZSH_CUSTOM:- $HOME / .oh-my-zsh/ custom} /plugins/zsh-syntax-highlighting"
24+ fi
25+
26+ echo " Configuring plugins in ~/.zshrc..."
27+ sed -i ' /^plugins=/c\plugins=(git zsh-autosuggestions zsh-syntax-highlighting)' ~ /.zshrc
28+
29+ echo " Post-installation steps completed successfully. Enjoy!"
You can’t perform that action at this time.
0 commit comments