function add_custom_plugin() { if [ ! -d "$ZSH_CUSTOM/plugins/$2" ]; then git clone "$1" "$ZSH_CUSTOM/plugins/$2" fi plugins+=($2) }