-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·65 lines (51 loc) · 1.57 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
# Make symbolic links to all dotfiles from home directory.
#
# Warning: if a dotfile already exists in home dir it will be removed.
cd "$(dirname "$0")"
dotfiledir=`pwd`
# all files beginning with a dot but not . .. or .git
dotfiles=`ls -a | grep '^\.' | grep -v '^\.*$' | grep -v '^\.git$'`
dotdirs=".config/dunst .config/i3 .config/onedrive .config/nvim .config/kitty"
echo "installing dotfiles..."
for f in $dotfiles; do
# skip directories
if [ -d "$f" ]; then
echo "skip $f dir"
continue
fi
# if file exists, remove it
if [ -e ~/$f ]; then
echo "remove $f"
rm -v -R ~/$f
fi
# copy to homedir (by making symbolic link from homedir)
echo "copy by symlink $f"
cp -v -sR $dotfiledir/$f ~/$f
done
echo "installing dotdirs"
for d in $dotdirs; do
# remove anything that will hinder the creation of the dotdir link
if [ -e ~/$d ]; then
echo "remove ~/$d"
rm -v -R ~/$d
fi
echo "linking $d"
ln -v -sf $dotfiledir/$d ~/$d
done
echo "apt installing stuff I will probably use"
sudo apt install -y tmux mercurial curl snapd git vim picocom python3-pip net-tools xclip alacritty kitty tig fzf fd-find ripgrep
echo "apt installing perlbrew and dependencies"
sudo apt install -y gcc patch bzip2 bzip2-libs perlbrew
echo "apt installing i3 and dependencies"
pushd .config/i3
./install.sh
popd
echo "Install Nerd Fonts"
mkdir ~/.fonts
pushd ~/.fonts
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/JetBrainsMono.zip
unzip JetBrainsMono.zip
rm *.zip
fc-cache -fv
popd