Install vscode plugins only under normal user account

This commit is contained in:
Cyryl Płotnicki 2016-11-25 19:46:59 +01:00
parent c5db9f55a4
commit 2e0cfe693f

View file

@ -34,12 +34,15 @@ cd ~/Downloads
rm -fv *code*.rpm rm -fv *code*.rpm
aria2c "https://go.microsoft.com/fwlink/?LinkID=760867" aria2c "https://go.microsoft.com/fwlink/?LinkID=760867"
sudo dnf -y install code*.rpm sudo dnf -y install code*.rpm
if [ "$(id -u)" != "0" ]; then
code --install-extension cssho.vscode-svgviewer code --install-extension cssho.vscode-svgviewer
code --install-extension donjayamanne.python code --install-extension donjayamanne.python
code --install-extension saviorisdead.RustyCode code --install-extension saviorisdead.RustyCode
code --install-extension seanmcbreen.Spell code --install-extension seanmcbreen.Spell
code --install-extension searKing.preview-vscode code --install-extension searKing.preview-vscode
code --install-extension vscodevim.vim code --install-extension vscodevim.vim
fi
if [[ -z $NO_COMPILE_VIM ]]; then if [[ -z $NO_COMPILE_VIM ]]; then
VIM_BUILD_DIR=/tmp VIM_BUILD_DIR=/tmp