-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
43 lines (40 loc) · 1.69 KB
/
Makefile
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
DOTFILES_DIR := $(dir $(abspath $(firstword $(MAKEFILE_LIST))))
XDG_CONFIG := $(HOME)/.config
install:
mkdir -p $(XDG_CONFIG)
rm -rf $(XDG_CONFIG)/i3
rm -rf $(XDG_CONFIG)/alacritty
rm -rf $(XDG_CONFIG)/nvim
rm -rf $(XDG_CONFIG)/fish
rm -rf $(XDG_CONFIG)/kitty
rm -rf $(HOME)/.zshrc
rm -rf $(HOME)/.tmux.conf
rm -rf $(XDG_CONFIG)/wezterm
rm -rf $(XDG_CONFIG)/starship.toml
rm -rf $(HOME)/go/bin/tmux-windowizer
rm -rf $(HOME)/go/bin/tmux-sessionizer
rm -rf $(HOME)/go/bin/tmux-switch
rm -rf $(XDG_CONFIG)/zellij
rm -rf $(XDG_CONFIG)/wezterm
rm -rf $(HOME)/.emacs.d
rm -rf $(HOME)/.profile
mkdir -p $(XDG_CONFIG)/i3
mkdir -p $(HOME)/go/bin
ln -s $(DOTFILES_DIR)/i3-config $(XDG_CONFIG)/i3/config
ln -s $(DOTFILES_DIR)/shell/fish $(XDG_CONFIG)/fish
ln -s $(DOTFILES_DIR)/terminal/wezterm $(XDG_CONFIG)/wezterm
ln -s $(DOTFILES_DIR)/terminal/kitty $(XDG_CONFIG)/
ln -s $(DOTFILES_DIR)/terminal/alacritty $(XDG_CONFIG)/
ln -s $(DOTFILES_DIR)/mux/tmux/tmux.conf $(HOME)/.tmux.conf
ln -s $(DOTFILES_DIR)/shell/starship/starship.toml $(XDG_CONFIG)/starship.toml
ln -s $(DOTFILES_DIR)/mux/zellij $(XDG_CONFIG)/
ln -s $(DOTFILES_DIR)/editor/nvim $(XDG_CONFIG)/
ln -s $(DOTFILES_DIR)/shell/zsh/zshrc $(HOME)/.zshrc
ln -s $(DOTFILES_DIR)/editor/emacs $(HOME)/.emacs.d
ln -s $(DOTFILES_DIR)/shell/profile $(HOME)/.profile
install-sublime-mac:
rm -rf "$(HOME)/Library/Application Support/Sublime Text/Packages"
ln -s "$(DOTFILES_DIR)/Sublime" "$(HOME)/Library/Application Support/Sublime Text/Packages"
sync-vscode-macos:
cp "$(HOME)/Library/Application Support/Code/User/settings.json" ./vscode/settings.json
cp "$(HOME)/Library/Application Support/Code/User/keybindings.json" ./vscode/keybindings.json