1
0
mirror of https://github.com/gryf/vmstrap.git synced 2026-03-26 13:53:36 +01:00

Compare commits

..

4 Commits

Author SHA1 Message Date
08b42fb7b5 Added pip3/vim/tmate to be installed on Ubuntu 22.04 2022-12-24 11:57:40 +01:00
1f62a4517d Removed unused opts 2022-12-01 17:52:01 +01:00
1ffb3723a3 Added support for Ubuntu 22.04 2022-12-01 17:50:58 +01:00
7b0f6a89b1 Moved setting alternatives out of installing things for Ubuntu 2022-12-01 17:42:19 +01:00

View File

@@ -54,7 +54,6 @@ COMMON_RPM=(bash-completion
COMMON_DEB=(exuberant-ctags COMMON_DEB=(exuberant-ctags
flake8 flake8
inotify-tools inotify-tools
python-apsw
python3-flake8 python3-flake8
python3-jedi python3-jedi
rlwrap rlwrap
@@ -158,7 +157,7 @@ function ubuntu {
tmate tmate
vim-gtk) vim-gtk)
;; ;;
'20.04') '20.04'|'22.04')
PGS=(ipython3 PGS=(ipython3
python3-pip python3-pip
tmate tmate
@@ -189,30 +188,44 @@ function ubuntu {
# 4. # 4.
case $DISTRO_R in case $DISTRO_R in
'16.04') '16.04')
sudo apt install -y python-apsw
sudo pip install pip --upgrade sudo pip install pip --upgrade
sudo pip install remote_pdb rainbow pdbpp sudo pip install remote_pdb rainbow pdbpp
;; ;;
'18.04') '18.04')
sudo update-alternatives \ sudo apt install -y python-apsw
--install /usr/bin/python python /usr/bin/python3.6 10
sudo update-alternatives \
--install /usr/bin/pip pip /usr/bin/pip3 10
# 5.
sudo pip3 install pip --upgrade sudo pip3 install pip --upgrade
sudo pip3 install remote_pdb rainbow pdbpp sudo pip3 install remote_pdb rainbow pdbpp
;; ;;
'20.04') '20.04')
sudo update-alternatives \ sudo apt install -y python-apsw
--install /usr/bin/python python /usr/bin/python3.8 10 sudo pip3 install remote_pdb rainbow pdbpp
sudo update-alternatives \ ;;
--install /usr/bin/pip pip /usr/bin/pip3 10 '22.04')
# 5. sudo apt install -y python3-apsw
sudo pip3 install remote_pdb rainbow pdbpp sudo pip3 install remote_pdb rainbow pdbpp
;; ;;
esac esac
fi fi
# 5. change alternatives # 5. change alternatives
case $DISTRO_R in
'18.04')
sudo update-alternatives \
--install /usr/bin/python python /usr/bin/python3.6 10
;;
'20.04')
sudo update-alternatives \
--install /usr/bin/python python /usr/bin/python3.8 10
# 5.
;;
'22.04')
sudo update-alternatives \
--install /usr/bin/python python /usr/bin/python3.10 10
;;
esac
sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 10
sudo update-alternatives --set editor /usr/bin/vim.basic sudo update-alternatives --set editor /usr/bin/vim.basic
# 6. copy configuration for bash, git, tmux # 6. copy configuration for bash, git, tmux
@@ -344,7 +357,7 @@ function main {
} }
# react on -h or --help # react on -h or --help
while getopts ":heicbdgvxsauzr" optchar; do while getopts ":hc" optchar; do
case "${optchar}" in case "${optchar}" in
h) h)
_showusage "$0" _showusage "$0"