-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathubuntu_minimal.bash
executable file
·111 lines (89 loc) · 2.54 KB
/
ubuntu_minimal.bash
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#!/bin/bash
## define colors
RED='\033[0;31m'
YEL='\033[0;33m'
NC='\033[0m' # No Color
## settings
reset
echo -e "${YEL}Starting to change settings ${NC}"
echo "change to enabled=0"
read -p "press enter to continue"
sudo vi /etc/default/apport
## system update
echo -e "${YEL}Starting to update the system ${NC}"
sudo apt-get -y update
sudo apt-get -y upgrade
# update git submodules
echo ""
echo ""
echo -e "${YEL}Updating supmodules ${NC}"
git submodule update --init
## apps
echo ""
echo ""
echo -e "${YEL}Starting to install apps ${NC}"
# tmux
echo ""
echo -e "${YEL}Installing tmux ${NC}"
sudo apt-get -y install tmux
# pip
echo ""
echo -e "${YEL}Installing pip ${NC}"
sudo apt-get -y install python-pip python3-pip
pip install --upgrade pip
# powerline fonts
echo ""
echo -e "${YEL}Installing powrline fonts ${NC}"
cd fonts
./install.sh
mkdir -p ~/.local/share/fonts/
mv PowerlineSymbols.otf ~/.local/share/fonts/
fc-cache -vf ~/.local/share/fonts/
# mkdir -p ~/.config/fontconfig/conf.d/
# mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/
cd ..
# install curl
echo ""
echo -e "${YEL}Installing curl ${NC}"
sudo apt-get -y install curl
# install oh-my-zsh
echo ""
echo -e "${YEL}Installing zsh ${NC}"
sudo apt-get -y install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# install powerlevel10k
echo ""
echo -e "${YEL}Installing powerlevel10k ${NC}"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
# install tmux addons
echo ""
echo -e "${YEL}Installing tmux addons ${NC}"
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# copying dotfiles
echo ""
echo -e "${YEL}Copying dotfiles ${NC}"
cp bashrc ~/.bashrc
cp zshrc ~/.zshrc
cp tmux.conf ~/.tmux.conf
cp vimrc ~/.vimrc
# cp powerline-shell.json ~/.powerline-shell.json
# Vim Plugins
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
echo "DEFAULT_USER = $USER prompt_context(){}" >> ~/.zshrc
echo ""
echo -e "${YEL}Setting up git params ${NC}"
read -p "git user.name? " name
git config --global user.email "[email protected]"
git config --global user.name "$name"
git config --global push.default matching
git config --global core.editor vim
ssh-keygen -t ed25519 -C "[email protected]"
eval $(ssh-agent -s)
ssh-add ~/.ssh/id_ed25519
cat ~/.ssh/id_ed25519.pub
# manual settings
echo ""
echo ""
echo -e "${YEL}Change these settings manually${NC}"
echo "Install tmux plugins by pressing 'prefix+I'"