Skip to content

Commit

Permalink
adds dotnet
Browse files Browse the repository at this point in the history
  • Loading branch information
ed-ilyin authored Dec 30, 2021
1 parent 77fa24b commit 21e2ffb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,19 @@ else
user_rc_path="/home/${USERNAME}"
fi

oh_my_install_dir="${user_rc_path}/.oh-my-zsh"
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() {
git clone "https://github.com/$1/$2.git" \
"${oh_my_install_dir}/custom/plugins/$2" 2>&1
sed -i -E "s/^(plugins=\(.+)\)$/\1 $2)/" "${user_rc_file}"
git clone "https://github.com/$1/$2.git" "${oh_my_install_dir}/$2" 2>&1
plug $2
}

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

0 comments on commit 21e2ffb

Please sign in to comment.