-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_fedora.sh
executable file
·56 lines (44 loc) · 1.57 KB
/
install_fedora.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
#!/bin/bash
source ./common.sh
echo "Installing dependencies ..."
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
sudo dnf -y install zsh \
neovim \
cmake \
gcc-c++ \
make \
python3-devel \
the_silver_searcher \
jetbrains-mono-fonts \
powerline-fonts \
direnv \
fd-find \
fzf \
ack \
tig \
golang \
yubioath-desktop \
util-linux-user \
docker-ce docker-ce-cli containerd.io docker-compose-plugin
sudo dnf module install -y nodejs:18/common
sudo usermod -aG docker b4k3r
echo "Coping files ..."
mkdir -p ~/.config/nvim
mkdir -p ~/.vim/{swapfiles,backup}
for item in `git ls-files` ; do
ln -sf ~/dotfiles/$item ~/.$item
done
rm ~/.install.sh ~/.update.sh
echo "Installing vim-plug ..."
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
echo "Installing plugins ...."
nvim +PlugInstall
echo "Installing zsh ..."
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
git checkout zshrc
ln -sf ~/dotfiles/zshrc ~/.zshrc
chsh -s /bin/zsh
sudo systemctl enable --now docker
echo "Done! Remember to restart the computer."