mirror of
https://github.com/gryf/vmstrap.git
synced 2026-03-26 22:03:33 +01:00
Compare commits
4 Commits
9b2aa25447
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 08b42fb7b5 | |||
| 1f62a4517d | |||
| 1ffb3723a3 | |||
| 7b0f6a89b1 |
39
bootstrap.sh
39
bootstrap.sh
@@ -54,7 +54,6 @@ COMMON_RPM=(bash-completion
|
||||
COMMON_DEB=(exuberant-ctags
|
||||
flake8
|
||||
inotify-tools
|
||||
python-apsw
|
||||
python3-flake8
|
||||
python3-jedi
|
||||
rlwrap
|
||||
@@ -158,7 +157,7 @@ function ubuntu {
|
||||
tmate
|
||||
vim-gtk)
|
||||
;;
|
||||
'20.04')
|
||||
'20.04'|'22.04')
|
||||
PGS=(ipython3
|
||||
python3-pip
|
||||
tmate
|
||||
@@ -189,30 +188,44 @@ function ubuntu {
|
||||
# 4.
|
||||
case $DISTRO_R in
|
||||
'16.04')
|
||||
sudo apt install -y python-apsw
|
||||
sudo pip install pip --upgrade
|
||||
sudo pip install remote_pdb rainbow pdbpp
|
||||
;;
|
||||
'18.04')
|
||||
sudo update-alternatives \
|
||||
--install /usr/bin/python python /usr/bin/python3.6 10
|
||||
sudo update-alternatives \
|
||||
--install /usr/bin/pip pip /usr/bin/pip3 10
|
||||
# 5.
|
||||
sudo apt install -y python-apsw
|
||||
sudo pip3 install pip --upgrade
|
||||
sudo pip3 install remote_pdb rainbow pdbpp
|
||||
;;
|
||||
'20.04')
|
||||
sudo update-alternatives \
|
||||
--install /usr/bin/python python /usr/bin/python3.8 10
|
||||
sudo update-alternatives \
|
||||
--install /usr/bin/pip pip /usr/bin/pip3 10
|
||||
# 5.
|
||||
sudo apt install -y python-apsw
|
||||
sudo pip3 install remote_pdb rainbow pdbpp
|
||||
;;
|
||||
'22.04')
|
||||
sudo apt install -y python3-apsw
|
||||
sudo pip3 install remote_pdb rainbow pdbpp
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# 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
|
||||
|
||||
# 6. copy configuration for bash, git, tmux
|
||||
@@ -344,7 +357,7 @@ function main {
|
||||
}
|
||||
|
||||
# react on -h or --help
|
||||
while getopts ":heicbdgvxsauzr" optchar; do
|
||||
while getopts ":hc" optchar; do
|
||||
case "${optchar}" in
|
||||
h)
|
||||
_showusage "$0"
|
||||
|
||||
Reference in New Issue
Block a user