sync
This commit is contained in:
parent
807d831197
commit
5029524678
|
@ -97,11 +97,11 @@ curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh
|
|||
message i "oh-my-zsh installed"
|
||||
|
||||
# set $ZSH_THEME="" in .zshrc
|
||||
cat $HOME/.zshrc | sed "s/^ZSH_THEME=\"robbyrussell\"/ZSH_THEME=\"\"/g" > $HOME/.zshrc
|
||||
cat $HOME/.zshrc | sed "s/^ZSH_THEME=\"robbyrussell\"/ZSH_THEME=\"\"/g" | tee $HOME/.zshrc
|
||||
message i "oh-my-zsh theme deactivated"
|
||||
|
||||
# clone plugins
|
||||
cd $HOME/.oh-my-zsh/custom/plugins/
|
||||
cd $HOME/.oh-my-zsh/custom/plugins/ > /dev/null
|
||||
git clone https://github.com/sindresorhus/pure.git pure
|
||||
git clone https://github.com/mafredri/zsh-async.git async
|
||||
git clone https://socialg.it/david/zsh-david.git zsh-david
|
||||
|
@ -109,12 +109,12 @@ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git zsh-syntax-hi
|
|||
git clone https://github.com/skx/sysadmin-util.git sysadmin-util
|
||||
git clone https://github.com/TamCore/autoupdate-oh-my-zsh-plugins.git autoupdate
|
||||
git clone https://github.com/zsh-users/zsh-autosuggestions.git zsh-autosuggestions
|
||||
cd -
|
||||
cd - > /dev/null
|
||||
message i "all plugins cloned"
|
||||
|
||||
# set $plugins in .zshrc
|
||||
plugins=(git zsh-autosuggestions autoupdate sysadmin-util zsh-syntax-highlighting zsh-david async pure)
|
||||
cat $HOME/.zshrc | sed "/plugins=(/,/)/d; s/source \$ZSH\/oh-my-zsh.sh/plugins=($plugins); source \$ZSH\/oh-my-zsh.sh/g" | sed $'s/; /\\\n/g' > $HOME/.zshrc
|
||||
cat $HOME/.zshrc | sed "/plugins=(/,/)/d; s/source \$ZSH\/oh-my-zsh.sh/plugins=($plugins); source \$ZSH\/oh-my-zsh.sh/g" | sed $'s/; /\\\n/g' | tee $HOME/.zshrc
|
||||
message i "activated zsh plugins [$plugins]"
|
||||
|
||||
message d "Installer finished."
|
||||
|
|
Loading…
Reference in New Issue