fix: add powerlevel10k install

This commit is contained in:
Yingjie Wang 2024-08-21 21:03:13 -04:00
parent 526979a9f9
commit 0c738fdb67

View File

@ -8,12 +8,13 @@ zsh_manager=$(gum choose --limit=1 --cursor-prefix "( ) " --selected-prefix "(x)
if [[ "${zsh_manager}" == *"oh my zsh"* ]]; then if [[ "${zsh_manager}" == *"oh my zsh"* ]]; then
source .install/install-packages.sh source .install/install-packages.sh
RUNZSH=no CHSH=no sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" RUNZSH=no CHSH=no sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fast-syntax-highlighting git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
_installSymLink zshrc ~/.zshrc ~/dotfiles/.zshrc_ohmyzsh ~/.zshrc git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fast-syntax-highlighting
_installSymLink zshrc ~/.zshrc ~/dotfiles/.zshrc_ohmyzsh ~/.zshrc
else else
packagesYay=("zinit"); packagesYay=("zinit");
source .install/install-packages.sh source .install/install-packages.sh
_installSymLink zshrc ~/.zshrc ~/dotfiles/.zshrc_zinit ~/.zshrc _installSymLink zshrc ~/.zshrc ~/dotfiles/.zshrc_zinit ~/.zshrc
fi fi
_installSymLink p10k ~/.p10k.zsh ~/dotfiles/.p10k.zsh ~/ _installSymLink p10k ~/.p10k.zsh ~/dotfiles/.p10k.zsh ~/