diff --git a/bootstrap.sh b/bootstrap.sh index a7a2863..8896080 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -3,10 +3,19 @@ # 1. update sudo apt update && sudo apt -y upgrade -# 2. install tools -sudo apt install -y vim-gtk-py2 mc python-jedi python3-jedi htop \ +lsb_release -a 2>/dev/null | grep -q bionic +if [[ $? -eq 0 ]]; then + PGS=vim-gtk mc python-jedi python3-jedi htop \ python-flake8 python3-flake8 exuberant-ctags pylint flake8 pylint3 \ git-review silversearcher-ag python-apsw ccze python-pip +else + PGS=vim-gtk-py2 mc python-jedi python3-jedi htop \ + python-flake8 python3-flake8 exuberant-ctags pylint flake8 pylint3 \ + git-review silversearcher-ag python-apsw ccze python-pip +fi + +# 2. install tools +sudo apt install -y $PGS # 3. cleanup sudo apt-get autoremove && sudo apt-get autoclean