-
Notifications
You must be signed in to change notification settings - Fork 0
/
linux-setup.sh
executable file
·67 lines (45 loc) · 1.39 KB
/
linux-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
#!/bin/bash
set -e
source ./scripts/script-funcs.sh
### install softwares
yay -S repgrep fzf
# go nvm nodejs
### dotfiles
__current_status "linking dotfiles"
dotfiles=(.ctags .bashrc .zshrc .gitconfig .xprofile .xinitrc)
for file in ${dotfiles[@]}; do
__current_status "linking ${file}"
__link_file ~/dotfiles/$file ~/$file
done
### fontconfig
if [ ! -d ~/.config/fontconfig ]; then
mkdir ~/.config/fontconfig
fi
__link_file ~/dotfiles/.fonts.conf ~/.config/fontconfig/fonts.conf
### vim
__current_status "linking vim config"
__link_file ~/dotfiles/vim/.vimrc ~/.vimrc
### neovim
__current_status "linking neovim config"
__link_file ~/dotfiles/nvim ~/.config/nvim
# neovim mason lazy sync
### zsh
__current_status "installing ohmyzsh"
if [ -d ~/.oh-my-zsh ]; then
__current_status "found ~/.oh-my-zsh - skipping this step"
else
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
__current_status "installing zsh plugins"
plugins=(autojump zsh-autosuggestions zsh-syntax-highlighting)
__install_from_repo "${plugins[*]}"
fi
### rime
# __current_status "installing rime"
### i3wm
source ./i3/setup.sh
__link_file ~/dotfiles/ranger ~/.config/ranger
### lazygit
__current_status "linking lazygit config"
link_file ~/dotfiles/lazygit.yml ~/.config/lazygit/config.yml
### end here
__current_status "installation successful 🚀"