-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bash_profile
More file actions
32 lines (26 loc) · 799 Bytes
/
.bash_profile
File metadata and controls
32 lines (26 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Login Shell
function __init__ {
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y \
git \
vim
}
function config_git {
git config --global user.email "onsoim@gmail.com"
git config --global user.name "onsoim"
}
function install_python36 {
# init to install python3
sudo apt-get install python3
sudo apt-get update
sudo apt-get upgrade python3
# install python3.6
sudo add-apt-repository ppa:fkrull/ppa -y
sudo apt-get update
sudo apt-get install -y python3.6
# python3 version settings
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2
# sudo update-alternatives --config python3
}