-
Notifications
You must be signed in to change notification settings - Fork 0
/
linux-setup.sh
executable file
·61 lines (47 loc) · 2.02 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
#!/bin/bash
set -e
source ~/dotfiles/scripts/script-funcs.sh
### install softwares
yay -S --needed repgrep fzf fd tmux vim \
alacritty lazygit git-delta eza \
bat gping tldr \
ttf-jetbrains-mono-nerd nerd-fonts-sf-mono
# go nvm nodejs
### dotfiles #########################
__current_status "linking dotfiles"
dotfiles=(.ctags .bashrc .zshrc .gitconfig)
for file in ${dotfiles[@]}; do
__current_status "linking ${file}"
__link_file ~/dotfiles/$file ~/$file
done
### Xorg #########################
__link_file ~/dotfiles/.xprofile ~/.xprofile
### fontconfig #########################
mkdir -p ~/.config/fontconfig
__link_file ~/dotfiles/.fonts.conf ~/.config/fontconfig/fonts.conf
### vim #########################
__current_status "linking vim config"
__link_file ~/dotfiles/vim/.vimrc ~/.vimrc
__link_file ~/dotfiles/vim/colors ~/.vim/colors
### alacritty #########################
__link_file ~/dotfiles/alacritty-linux.toml ~/.config/alacritty/alacritty.toml
### lazygit #########################
__current_status "linking lazygit config"
__link_file ~/dotfiles/lazygit.yml ~/.config/lazygit/config.yml
__current_status "installation successful 🚀"
##########################################
#### neovim
# __current_status "linking neovim config"
# __link_file ~/dotfiles/nvim ~/.config/nvim
### neovim mason lazy sync
## rime, tmux, i3wm, ranger
##### zsh
# 1. ohmyz.sh, install oh-my-zsh
# 2. git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
# 3. git clone --depth=1 https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# 4. git clone --depth=1 https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# 5. git clone --depth=1 https://github.com/MichaelAquilina/zsh-you-should-use.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/you-should-use
#
# 1. cat /etc/shells, chsh -l
# 2. yay -S zsh
# 3. chsh -s /usr/bin/zsh, then logout