Skip to content

Commit

Permalink
cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
ed-ilyin authored Dec 30, 2021
1 parent 21e2ffb commit 4e7c124
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ fi
oh_my_plugins_dir="${user_rc_path}/.oh-my-zsh/custom/plugins"
user_rc_file="${user_rc_path}/.zshrc"

plug() { sed -i -E "s/^(plugins=\(.+)\)$/\1 $1)/" "${user_rc_file}"; }
plugin() { sed -i -E "s/^(plugins=\(.+)\)$/\1 $1)/" "${user_rc_file}"; }

plugin() {
plug() {
git clone "https://github.com/$1/$2.git" "${oh_my_install_dir}/$2" 2>&1
plug $2
plugin $2
}

if [ ! -z ${_BUILD_ARG_OMZPLUGINS} ]; then
echo "Activating feature 'omzplugins'"
plug dotnet
plugin zdharma-continuum fast-syntax-highlighting
plugin zsh-users zsh-autosuggestions
plugin dotnet
plug zdharma-continuum fast-syntax-highlighting
plug zsh-users zsh-autosuggestions
fi

0 comments on commit 4e7c124

Please sign in to comment.