-
Notifications
You must be signed in to change notification settings - Fork 3
/
scratch.sh
40 lines (32 loc) · 1.31 KB
/
scratch.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
#!/bin/bash
# update system and install yay
pacman -Syu
sudo pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
# install packages
yay -S zsh bat neovim fzf rbenv ruby-build telegram-desktop windscribe-bin visual-studio-code-bin google-chrome betterdiscord-installer-bin vim steam awesome-git rofi lua-pam-git docker gamemode
# create projects directory and clone dotfiles
mkdir ~/Documents/projects
mkdir ~/Documents/projects/dotfiles
cd ~/Documents/projects/dotfiles
git clone --recurse-submodules https://github.com/mpourismaiel/dotfiles.git awesome
# prepare docker
sudo groupadd docker
sudo usermod -aG docker $USER
sudo systemctl enable docker.service
# isntall nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
# install oh-my-zsh and starship
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
curl -sS https://starship.rs/install.sh | sh
# backup awesome config if exists
if [[ -d ~/.config/awesome ]]; then
mv ~/.config/awesome ~/.config/awesome.backup
fi
# create awesome config directory and link dotfiles
mkdir ~/.config/awesome-config
touch ~/.config/awesome-config/autostart
ln -s ~/Documents/projects/dotfiles/awesome $HOME/.config/awesome
sh ~/Documents/projects/dotfiles/extra/zsh/setup.sh