2024-06-07 01:04:42 -04:00
|
|
|
# ------------------------------------------------------
|
|
|
|
# install zsh and zinit
|
|
|
|
# ------------------------------------------------------
|
2024-06-07 03:09:21 -04:00
|
|
|
packagesPacman=("zsh");
|
|
|
|
|
|
|
|
echo "Please select the zsh plugin manager:"
|
|
|
|
zsh_manager=$(gum choose --limit=1 --cursor-prefix "( ) " --selected-prefix "(x) " --unselected-prefix "( ) " "oh my zsh" "zinit")
|
2024-06-07 04:05:41 -04:00
|
|
|
if [[ "${zsh_manager}" == *"oh my zsh"* ]]; then
|
2024-06-07 03:09:21 -04:00
|
|
|
source .install/install-packages.sh
|
2024-08-25 10:39:27 -04:00
|
|
|
if [ ! -d ~/.oh-my-zsh ]; then
|
|
|
|
RUNZSH=no CHSH=no sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
|
|
|
fi
|
2024-08-21 21:03:13 -04:00
|
|
|
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
|
|
|
|
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|
|
|
|
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
|
2024-06-07 03:09:21 -04:00
|
|
|
else
|
|
|
|
packagesYay=("zinit");
|
2024-08-21 21:03:13 -04:00
|
|
|
source .install/install-packages.sh
|
2024-06-07 04:14:05 -04:00
|
|
|
_installSymLink zshrc ~/.zshrc ~/dotfiles/.zshrc_zinit ~/.zshrc
|
2024-06-07 03:09:21 -04:00
|
|
|
fi
|
2024-06-07 04:35:16 -04:00
|
|
|
_installSymLink p10k ~/.p10k.zsh ~/dotfiles/.p10k.zsh ~/
|