-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
26 lines (22 loc) · 1.46 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.PHONY: install_omz install_zsh install_dependencies user_installations
install_dependencies:
@echo "Installing dependencies... Please run as root."
# Check if the script is running as root
ifeq ("$(shell whoami)", "root")
apt update && apt install -y stow curl zsh
else
sudo apt update && apt install -y stow curl zsh
@echo "Not running as root."
endif
install_zsh:
@stow -v zsh
user_installations:
@echo "Installing Oh My Zsh and plugins..."
cd && sh -c "$$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --keep-zshrc --unattended && \
git clone https://github.com/zsh-users/zsh-autosuggestions $${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions || echo "zsh-autosuggestions already installed" && \
git clone https://github.com/zsh-users/zsh-syntax-highlighting $${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting || echo "zsh-syntax-highlighting already installed" && \
git clone https://github.com/zsh-users/zsh-completions $${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-completions || echo "zsh-completions already installed" && \
git clone https://github.com/jeffreytse/zsh-vi-mode $${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-vi-mode || echo "zsh-vi-mode already installed" && \
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
@echo "Installation complete. Remember to add plugins to your .zshrc."
install_omz: install_zsh user_installations