Skip to content

Commit

Permalink
Merge pull request #3 from fabidick22/add_plugins_zsh
Browse files Browse the repository at this point in the history
Add plugins zsh
  • Loading branch information
fabidick22 authored Nov 22, 2018
2 parents d4668ff + 2ae7c05 commit 9528f1b
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions install-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,27 @@ install_lock(){
}

install_oh_my_zsh(){
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
source ~/.zshrc | zsh
# sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh
#quit start zsh for add plugins
sed -i 's/ env zsh -l/ /g' "./install.sh"
sh ./install.sh
#add default plugins to zsh
add_plugins_oh_my_zsh
rm ./install.sh
#start zsh
env zsh -l
}

add_plugins_oh_my_zsh(){
echo "Config plugins of oh my zsh"
echo "Plugins installed:"
for name in ${plugins_zsh[*]}
do
echo_pass $name
name_plugins+=" \n\t"$name
done
echo $name_plugins
ruta=~/"/.zshrcs"
ruta=~/".zshrc"
sed -i "s/ git/ $name_plugins/g" "$ruta"
}

Expand Down

0 comments on commit 9528f1b

Please sign in to comment.