blob: 728466f42c337a177398c3f6429de7a1bf9e2dee (
plain)
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
|
#!/bin/bash
for name in \
.tmux.conf \
.vimrc \
.zshrc \
; \
do
if [ ! -L ~/"$name" ]; then
echo "symlink: ~/$name"
ln -s -f ~/dotfiles/"$name" ~/"$name"
fi
done
if [ ! -d ~/.config ]; then
echo "dir: ~/.config"
mkdir ~/.config
fi
for name in \
alacritty \
bat \
emacs \
git \
nvim \
; \
do
if [ ! -L ~/.config/"$name" ]; then
echo "symlink: ~/.config/$name"
ln -s -f ~/dotfiles/.config/"$name" ~/.config/"$name"
fi
done
echo "symlink: ~/.config/alacritty/alacritty.local.yml"
if [[ "$(uname)" == "Darwin" ]]; then
ln -s -f ~/.config/alacritty/alacritty.macos.yml ~/.config/alacritty/alacritty.local.yml
else
ln -s -f ~/.config/alacritty/alacritty.linux.yml ~/.config/alacritty/alacritty.local.yml
fi
paq_dir="${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/pack/paqs/start/paq-nvim
if [ ! -d "$paq_dir" ]; then
echo "clone: $paq_dir"
git clone --depth=1 https://github.com/savq/paq-nvim.git "$paq_dir"
fi
if [ ! -d ~/.config/skk ]; then
echo "dir: ~/.config/skk"
mkdir ~/.config/skk
fi
if [ ! -f ~/.config/skk/jisyo.L ]; then
echo "download: ~/config/.skk/jisyo.L"
_compressed_jisyo="$(mktemp)"
curl -fL -o "$_compressed_jisyo" https://skk-dev.github.io/dict/SKK-JISYO.L.unannotated.gz
gunzip -cd "$_compressed_jisyo" > ~/.config/skk/jisyo.L
fi
|