no message
parent
4c7d2f9192
commit
9151edaaa4
|
@ -1,12 +1,33 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
install_homebrew() {
|
||||||
|
# Check if Homebrew is already installed
|
||||||
|
if command -v brew &> /dev/null; then
|
||||||
|
echo "Homebrew is already installed."
|
||||||
|
else
|
||||||
|
# Check if the system is macOS (Darwin)
|
||||||
|
if [ "$(uname -s)" == "Darwin" ]; then
|
||||||
|
echo "Installing Homebrew..."
|
||||||
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
|
else
|
||||||
|
echo "This script is intended for macOS only. Exiting..."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# install home-brew
|
# install home-brew
|
||||||
|
install_homebrew
|
||||||
|
|
||||||
|
|
||||||
# install zsh
|
# install zsh
|
||||||
|
|
||||||
# install oh-my-zsh
|
# install oh-my-zsh
|
||||||
git clone https://git.mingzailao.live/mingzailao/ohmyzsh.git ~/.oh-my-zsh
|
#git clone https://git.mingzailao.live/mingzailao/ohmyzsh.git ~/.oh-my-zsh
|
||||||
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
|
#cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
|
||||||
chsh -s $(which zsh)
|
#chsh -s $(which zsh)
|
||||||
|
|
||||||
# install powerlevel10k
|
# install powerlevel10k
|
||||||
git clone https://git.mingzailao.live/mingzailao/powerlevel10k.git ~/powerlevel10k
|
#git clone https://git.mingzailao.live/mingzailao/powerlevel10k.git ~/powerlevel10k
|
||||||
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc
|
#echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc
|
||||||
|
|
Loading…
Reference in New Issue