Skip to content

Commit

Permalink
update makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
hezhizhen committed Jul 23, 2024
1 parent 45c2bc0 commit 399064a
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,32 +1,34 @@
all: sync

sync:
mkdir -p ~/.config/alacritty

[ -f ~/.config/alacritty/alacritty.yml ] || ln -s $(PWD)/.config/alacritty/alacritty.yml ~/.config/alacritty/alacritty.yml
[ -f ~/.vimrc ] || ln -s $(PWD)/.vimrc ~/.vimrc
[ -f ~/.gitconfig ] || ln -s $(PWD)/.gitconfig ~/.gitconfig
[ -f ~/.tmux.conf ] || ln -s $(PWD)/.tmux.conf ~/.tmux.conf
[ -f ~/.config/starship.toml ] || ln -s $(PWD)/.config/starship.toml ~/.config/starship.toml
[ -f ~/.yabairc ] || ln -s $(PWD)/.yabairc ~/.yabairc
[ -f ~/.skhdrc ] || ln -s $(PWD)/.skhdrc ~/.skhdrc
[ -d ~/.config/nvim ] || ln -s $(PWD)/.config/nvim ~/.config/nvim
[ -d ~/.doom.d ] || ln -s $(PWD)/.doom.d ~/.doom.d
[ -f ~/.finicky.js ] || ln -s $(PWD)/.finicky.js ~/.finicky.js
[ -d ~/.config/jrnl ] || ln -s $(PWD)/.config/jrnl ~/.config
[ -d ~/.doom.d ] || ln -s $(PWD)/.doom.d ~/.doom.d
[ -f ~/.gitconfig ] || ln -s $(PWD)/.gitconfig ~/.gitconfig
[ -f ~/.tmux.conf ] || ln -s $(PWD)/.tmux.conf ~/.tmux.conf
[ -f ~/.vimrc ] || ln -s $(PWD)/.vimrc ~/.vimrc
[ -f ~/.yabairc ] || ln -s $(PWD)/.yabairc ~/.yabairc

[ -f ~/.config/starship.toml ] || ln -s $(PWD)/.config/starship.toml ~/.config/starship.toml
[ -d ~/.config/alacritty ] || ln -s $(PWD)/.config/alacritty ~/.config
[ -d ~/.config/jrnl ] || ln -s $(PWD)/.config/jrnl ~/.config
[ -d ~/.config/nvim ] || ln -s $(PWD)/.config/nvim ~/.config/nvim
[ -d ~/.config/skhd ] || ln -s $(PWD)/.config/skhd ~/.config

clean:
rm -f ~/.config/alacritty/alacritty.yml
rm -f ~/.vimrc

rm -rf ~/.doom.d
rm -f ~/.finicky.js
rm -f ~/.gitconfig
rm -f ~/.tmux.conf
rm -f ~/.config/starship.toml
rm -f ~/.vimrc
rm -f ~/.yabairc
rm -f ~/.skhdrc
rm -rf ~/.config/nvim
rm -f ~/.finicky.js

rm -f ~/.config/starship.toml
rm -rf ~/.config/alacritty
rm -rf ~/.config/jrnl
rm -rf ~/.doom.d
rm -rf ~/.config/nvim
rm -rf ~/.config/skhd

update: brew spell

Expand Down

0 comments on commit 399064a

Please sign in to comment.