-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·87 lines (66 loc) · 2.44 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/bash
if [ `uname` == 'Linux' ]; then
sudo apt install git
fi
# Clone dotfiles
DOT_DIR="$HOME/src/github.com/EkeMinusYou"
git clone https://github.com/EkeMinusYou/dotfiles ${DOT_DIR}/dotfiles
ln -sfn $DOT_DIR/dotfiles/.gitconfig ~/.gitconfig
if [ `uname` == 'Darwin' ]; then
ln -sfn $DOT_DIR/dotfiles/.gitconfig-mac ~/.gitconfig-os
elif [ `uname` = "Linux" ]; then
ln -sfn $DOT_DIR/dotfiles/.gitconfig-linux ~/.gitconfig-os
fi
# gitignore
mkdir -p ~/.config/git
ln -sfn $DOT_DIR/dotfiles/.config/git/ignore ~/.config/git/ignore
# Setup zsh
ln -sfn $DOT_DIR/dotfiles/.zshrc ~/.zshrc
mkdir -p ~/.zsh/
mkdir -p ~/.zsh/scripts
# lazygit
mkdir -p ~/.config/lazygit
ln -sfn $DOT_DIR/dotfiles/.config/lazygit/config.yml ~/.config/lazygit/config.yml
# Setup sheldon
mkdir -p ~/.config/sheldon
ln -sfn $DOT_DIR/dotfiles/.config/sheldon/plugins.toml ~/.config/sheldon/plugins.toml
# Setup nvim
ln -sfn $DOT_DIR/dotfiles/.config/nvim ~/.config/
# Setup snippets
ln -sfn $DOT_DIR/dotfiles/.vsnip ~/.vsnip
# Setup GitHub CLI
mkdir -p ~/.config/gh
ln -sfn $DOT_DIR/dotfiles/.config/gh/config.yml ~/.config/gh/config.yml
# Setup cz-git
ln -sfn $DOT_DIR/dotfiles/.czrc ~/.czrc
# Setup starship
ln -sfn $DOT_DIR/dotfiles/.config/starship.toml ~/.config/starship.toml
# Setup karabiner
mkdir -p ~/.config/karabiner
ln -sfn $DOT_DIR/dotfiles/.config/karabiner/karabiner.json ~/.config/karabiner/karabiner.json
# Setup WezTerm
mkdir -p ~/.config/wezterm
ln -sfn $DOT_DIR/dotfiles/.config/wezterm ~/.config/
# Setup gh dash
mkdir -p ~/.config/gh-dash
ln -sfn $DOT_DIR/dotfiles/.config/gh-dash/config.yml ~/.config/gh-dash/config.yml
# Setup yazi
ln -sfn $DOT_DIR/dotfiles/.config/yazi ~/.config/
# Setup aqua
ln -sfn $DOT_DIR/dotfiles/.config/aqua ~/.config/
# ghostty
ln -sfn $DOT_DIR/dotfiles/.config/ghostty ~/.config/
# zellij
ln -sfn $DOT_DIR/dotfiles/.config/zellij ~/.config/
# alacritty
ln -sfn $DOT_DIR/dotfiles/.config/alacritty ~/.config
if [ `uname` == 'Darwin']; then
# Setup yabai and skhd
mkdir -p ~/.config/yabai
ln -sfn $DOT_DIR/dotfiles/.config/yabai/yabairc ~/.config/yabai/yabairc
mkdir -p ~/.config/skhd
ln -sfn $DOT_DIR/dotfiles/.config/skhd/skhdrc ~/.config/skhd/skhdrc
# Setup macSKK
ln -sfn $DOT_DIR/dotfiles/macSKK/kana-rule.conf ~/Library/Containers/net.mtgto.inputmethod.macSKK/Data/Documents/Settings/kana-rule.conf
ln -sfn ~/Library/Containers/net.mtgto.inputmethod.macSKK/Data/Documents/Dictionaries/skk-jisyo.utf8 ~/.skk/skk-jisyo.utf8
fi