-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdotfiles_install.sh
executable file
·127 lines (109 loc) · 5.12 KB
/
dotfiles_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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#!/bin/bash
set -e
case ${OSTYPE} in
darwin*)
# mkdir -p ~/.config/karabiner/
# ln -sf ~/dotfiles/.config/karabiner/karabiner.json ~/.config/karabiner/karabiner.json
# sudo ln -sf ~/dotfiles/Library/LaunchDaemons/limit.maxfiles.plist /Library/LaunchDaemons/limit.maxfiles.plist
# mkdir -p ~/Library/Preferences/
# ln -sf ~/dotfiles/home/Library/Preferences/com.amethyst.Amethyst.plist ~/Library/Preferences/com.amethyst.Amethyst.plist
;;
linux*)
ln -sf ~/dotfiles/.alacritty.yml ~/.alacritty.yml
ln -sf ~/dotfiles/.aspell.conf ~/.aspell.conf
ln -sf ~/dotfiles/.zlogin ~/.zlogin
# X
ln -sf ~/dotfiles/.xinitrc ~/.xinitrc
ln -sf ~/dotfiles/.xscreensaver ~/.xscreensaver
ln -sf ~/dotfiles/.Xresources ~/.Xresources
ln -sf ~/dotfiles/.xbindkeysrc ~/.xbindkeysrc
sudo ln -sf ~/dotfiles/etc/X11/xorg.conf.d/30-touchpad.conf /etc/X11/xorg.conf.d/30-touchpad.conf
sudo ln -sf ~/dotfiles/etc/X11/xorg.conf.d/10-monitor.conf /etc/X11/xorg.conf.d/10-monitor.conf
sudo ln -sf ~/dotfiles/etc/X11/xorg.conf.d/29-trackpoint.conf /etc/X11/xorg.conf.d/29-trackpoint.conf
if [[ ! -d ~/.config/dunst ]]; then
mkdir -p ~/.config/dunst
fi
ln -sf ~/dotfiles/.config/dunst/dunstrc ~/.config/dunst/dunstrc
if [[ ! -d ~/.config/zathura ]]; then
mkdir -p ~/.config/zathura
fi
ln -sf ~/dotfiles/.config/zathura/zathurarc ~/.config/zathura/zathurarc
if [[ ! -d ~/.config/fontconfig/conf.d ]]; then
mkdir -p ~/.config/fontconfig/conf.d
fi
ln -sf ~/dotfiles/.config/fontconfig/conf.d/50-enable-terminal-powerline.conf ~/.config/fontconfig/conf.d/50-enable-terminal-powerline.conf
ln -sf ~/dotfiles/.config/fontconfig/conf.d/71-no-embedded-bitmaps.conf ~/.config/fontconfig/conf.d/71-no-embedded-bitmaps.conf
# ln -sf ~/dotfiles/.config/fontconfig/conf.d/72-use-twitter-color-emoji.conf ~/.config/fontconfig/conf.d/72-use-twitter-color-emoji.conf
ln -sf ~/dotfiles/.config/fontconfig/conf.d/73-sharp-font.conf ~/.config/fontconfig/conf.d/73-sharp-font.conf
ln -sf ~/dotfiles/.config/fontconfig/conf.d/74-japanese.conf ~/.config/fontconfig/conf.d/74-japanese.conf
ln -sf ~/dotfiles/.config/redshift.conf ~/.config/redshift.conf
if [[ ! -d ~/.docker ]]; then
mkdir -p ~/.docker
fi
ln -sf ~/dotfiles/.docker/config.json ~/.docker/config.json
mkdir -p ~/.xmonad
ln -sf ~/dotfiles/xmonad.hs ~/.xmonad/xmonad.hs
ln -sf ~/dotfiles/.xmobarrc ~/.xmobarrc
# xkeysnail
# NOTE: need restart?
sudo ln -sf ~/dotfiles/etc/modules-load.d/uinput.conf /etc/modules-load.d/uinput.conf
sudo ln -sf ~/dotfiles/etc/udev/rules.d/29-input.rules /etc/udev/rules.d/29-input.rules
sudo ln -sf ~/dotfiles/etc/udev/rules.d/30-uinput.rules /etc/udev/rules.d/30-uinput.rules
sudo ln -sf ~/dotfiles/etc/udev/rules.d/99-ergodox.rules /etc/udev/rules.d/99-ergodox.rules
mkdir -p ~/.config/systemd/user
ln -sf ~/dotfiles/.config/systemd/user/ergodox.service ~/.config/systemd/user/ergodox.service
ln -sf ~/dotfiles/.config/systemd/user/ssh-agent.service ~/.config/systemd/user/ssh-agent.service
ln -sf ~/dotfiles/.config/systemd/user/xkeysnail.service ~/.config/systemd/user/xkeysnail.service
# sudo ln -sf ~/dotfiles/etc/systemd/system/phonesim.service /etc/systemd/system/phonesim.service
# sudo ln -sf ~/dotfiles/etc/ofono/phonesim.conf /etc/ofono/phonesim.conf
;;
esac
# git
ln -sf ~/dotfiles/.gitconfig ~/.gitconfig
# vim
ln -sf ~/dotfiles/.vimrc ~/.vimrc
# ln -sf ~/dotfiles/.vimshrc ~/.vimshrc
# ln -sf ~/dotfiles/.gvimrc ~/.gvimrc
# ln -sf ~/dotfiles/.xvimrc ~/.xvimrc
# zsh
ln -sf ~/dotfiles/.zshrc ~/.zshrc
ln -sf ~/dotfiles/.zshenv ~/.zshenv
ln -sf ~/dotfiles/.zprofile ~/.zprofile
ln -sf ~/dotfiles/.zprompt ~/.spaceshiprc.zsh
# tmux
if [[ ! -d ~/.tmux/plugins/tpm ]]; then
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
fi
ln -sf ~/dotfiles/.tmux.conf ~/.tmux.conf
mkdir -p ~/.config/tmux-powerline
ln -sf ~/dotfiles/tmux-powerline/config.sh ~/.config/tmux-powerline/config.sh
# lisp
if [[ ! -d ~/.config/common-lisp ]]; then
mkdir -p ~/.config/common-lisp
fi
if [[ ! -d ~/dev/cl ]]; then
mkdir -p ~/dev/cl
fi
ln -sf ~/dotfiles/.config/common-lisp/source-registry.conf ~/.config/common-lisp/source-registry.conf
ln -sf ~/dotfiles/.sbclrc ~/.sbclrc
# emacs
ln -sf ~/dotfiles/.emacs.d ~/.emacs.d
mkdir -p ~/.emacs.d/var/slack-images
mkdir -p ~/.emacs.d/var/slack-profile-images
# gems
ln -sf ~/dotfiles/.gemrc ~/.gemrc
ln -sf ~/dotfiles/.pryrc ~/.pryrc
# rust
if [[ ! -d ~/.cargo ]]; then
mkdir -p ~/.cargo
fi
ln -sf ~/dotfiles/.cargo/config ~/.cargo/config
# rubocop
ln -sf ~/dotfiles/.rubocop.yml ~/.rubocop.yml
# sbt
if [[ ! -d ~/.sbt/0.13/plugins ]]; then
mkdir -p ~/.sbt/0.13/plugins/
fi
ln -sf ~/dotfiles/.sbt/0.13/plugins/plugins.sbt ~/.sbt/0.13/plugins/plugins.sbt
ln -sf ~/dotfiles/.sbt/0.13/plugins/build.sbt ~/.sbt/0.13/plugins/build.sbt
echo "Finished"