-
Notifications
You must be signed in to change notification settings - Fork 0
/
initial_setup.sh
95 lines (71 loc) · 2.07 KB
/
initial_setup.sh
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
#!/bin/bash
RED='\033[0;31m'
NC='\033[0m' # No Color
Log() {
echo -e "\n${RED}$1${NC}\n"
}
Install() {
Log "Installing $1"
sudo apt -y install $1
}
Clone() {
cd $2
Log "Cloning $1 into $2"
git clone $1
cd
}
Copy() {
Log "Coping $1 in $2"
cp $1 $2
}
Pip() {
Log "Pip: installing $1"
pip install $1
}
Log "Updating"
sudo apt -y update
Log "Upgrading"
sudo apt -y upgrade
####################
Log "rcfiles setup"
####################
Clone "https://github.com/gamberoillecito/rcfiles.git" .
# neovim
mkdir ./.config/nvim/
Copy "rcfiles/init.vim" ".config/nvim/"
# tmux
Log "Copying tmux rc file"
Copy ~/rcfiles/tmux.conf ~/.tmux.conf
Log "Setting zsh as the default shell"
chsh -s $(which zsh)
Install neovim
Install git
Install tmux
Install curl
Log "Git setup"
git config --global user.name ""
git config --global user.email ""
git config --global credential.helper store
git config --global init.defaultBranch main
###############
#### ZSH ######
###############
Log "type 'exit' after zsh has installed to continue the installation"
Install zsh
Log "Installing OhMyZsh (https://ohmyz.sh/#install)"
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Log "Installing fonts"
mkdir ~/.local/share/fonts
cd ~/.local/share/fonts
curl -L -O "https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf"
curl -L -O "https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf"
curl -L -O "https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf"
curl -L -O "https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf"
cd
fc-cache -f -v
touch ~/.Xresources
echo "xterm*faceName: MesloLGS NF" >> ~/.Xresources
Log "Installing Powerlevel10k (https://github.com/romkatv/powerlevel10k#oh-my-zsh)"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="powerlevel10k\/powerlevel10k"/' .zshrc
Copy ~/rcfiles/p10k.zsh ~/.p10k.zsh