# vim ft=zsh install_if_not_exists() { local path="${HOME}/.config/zsh/plugins/${1}" if [ ! -d "${path}" ]; then /usr/bin/git clone "https://github.com/${1}" "${path}" fi } install_if_not_exists zsh-users/zsh-autosuggestions install_if_not_exists zsh-users/zsh-syntax-highlighting install_if_not_exists hlissner/zsh-autopair _so "${HOME}/.config/zsh/plugins/zsh-users/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" _so "${HOME}/.config/zsh/plugins/zsh-users/zsh-autosuggestions/zsh-autosuggestions.zsh" _so "${HOME}/.config/zsh/plugins/hlissner/zsh-autopair/autopair.zsh"