-
Notifications
You must be signed in to change notification settings - Fork 0
/
installer.sh
61 lines (43 loc) · 1.68 KB
/
installer.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
# clean up
rm -rf ~/.local/share/nvim
echo removed nvim from $XDG_CONFIG_HOME/.local/share
rm -rf ~/.local/state/nvim
echo removed nvim state from $XDG_CONFIG_HOME/.local/state
rm -rf ~/.local/share/tmux
echo removed tmux from $XDG_CONFIG_HOME/.local/share
rm -rf ~/.local/state/tmux
echo removed tmux state from $XDG_CONFIG_HOME/.local/state
rm -rf ~/.local/share/vim-lsp-settings
echo removed vim-lsp-settings from $XDG_CONFIG_HOME/.local/share
unlink ~/.config/nvim
echo removed nvim link from $XDG_CONFIG_HOME
unlink ~/.config/tmux
echo removed tmux link from $XDG_CONFIG_HOME
unlink ~/.config/nix
echo removed nix link from $XDG_CONFIG_HOME
unlink ~/.config/zsh
echo removed zsh link from $XDG_CONFIG_HOME
unlink ~/.config/home-manager
echo removed home-manager from $XDG_CONFIG_HOME/.config
rm -rf ~/.tmux
echo removed .tmux directory from $HOME
# create ~/.config if it doesn't exist already
mkdir -p ~/.config
# link tmux config directory to ~/.config/tmux ($XDG_CONFIG_HOME)
ln -s $HOME/dotfiles/tmux $HOME/.config/tmux
echo linked tmux configuration to $XDG_CONFIG_HOME
ln -s $HOME/dotfiles/nix $HOME/.config/nix
echo linked nix configuration to $XDG_CONFIG_HOME
# link nvim config directory to ~/.config/nvim
ln -s $HOME/dotfiles/nvim $HOME/.config/nvim
echo linked nvim configuration to $XDG_CONFIG_HOME
ln -s $HOME/dotfiles/zsh $HOME/.config
echo linked zsh configurations to $XDG_CONFIG_HOME
ln -s $HOME/dotfiles/home-manager $HOME/.config
echo linked home-manager configuration to $XDG_CONFIG_HOME
# copy fonts to local machine for mac
if [[ $OSTYPE == 'darwin'* ]]; then
cp -rf $HOME/dotfiles/fonts/*.ttf ~/Library/Fonts
echo copied fonts on mac system
fi
git submodule update --init