mirror of
https://github.com/DefectingCat/dotfiles
synced 2025-07-15 16:51:36 +00:00
22 lines
848 B
Bash
Executable File
22 lines
848 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# $1 git path $2 target directory
|
|
function install_plugin {
|
|
if [ ! -d "$2" ]; then
|
|
echo "install $1"
|
|
git clone --depth=1 "$1" "$2"
|
|
else
|
|
cd "$2" || exit
|
|
echo "update $1"
|
|
git pull
|
|
fi
|
|
}
|
|
|
|
install_plugin https://github.com/zsh-users/zsh-syntax-highlighting.git "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}"/plugins/zsh-syntax-highlighting
|
|
install_plugin https://github.com/zsh-users/zsh-autosuggestions "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}"/plugins/zsh-autosuggestions
|
|
install_plugin https://github.com/jeffreytse/zsh-vi-mode "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}"/plugins/zsh-vi-mode
|
|
install_plugin https://github.com/Aloxaf/fzf-tab "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}"/plugins/fzf-tab
|
|
install_plugin https://github.com/romkatv/powerlevel10k.git "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}"/themes/powerlevel10k
|
|
|
|
echo "Done."
|