-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
45 lines (34 loc) · 1.07 KB
/
install.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
#!/usr/bin/env bash
DOTFILES="$(pwd)"
echo "restoring data"
sudo dnf update -y
sudo dnf install -y git zsh wget curl rsync timeshift npm
#links to home
ln -s /git/ ~/git
ln -s /data/ ~/Data
#font
mkdir ~/temp/
cd ~/temp/
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.2.2/Hack.zip
unzip Hack.zip
mv *.ttf ~/.fonts
mv *ttf ~/.local/share/fonts
sudo mv *.ttf /usr/share/fonts/
fc-cache -fv
rm -fr ~/temp/
#omzsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
rm -f ~/.zshrc
ln -s /git/dotfiles/zshrc ~/.zshrc
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
rm -f ~/.p10k.zsh
ln -s /git/dotfiles/p10k.zsh ~/.p10k.zsh
#setup keyd
cd /git/keyd
make && sudo make install
sudo systemctl enable keyd && sudo systemctl start keyd
sudo mkdir /etc/keyd/
sudo ln -s ~/git/dotfiles/keyd/*.conf /etc/keyd/
sudo keyd reload
#setup edge