-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
47 lines (36 loc) · 1.55 KB
/
justfile
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
brew_version := `(brew --version | cut -f2 -d ' ')`
bat_theme_dir := `(bat --config-dir)` + "/themes"
git_config := "$HOME/.gitconfig"
zsh_config := "$HOME/.zshrc"
espanso_config_dir := `(espanso path | head -n 1 | grep -o '/Users.*')`
starship_config := "$HOME/.config/starship.toml"
tmux_config := "$HOME/.tmux.conf"
nvim_config_dir := "$HOME/.config/nvim"
info:
@echo "Homebrew" {{brew_version}}
brew:
brew bundle --force cleanup
brew bundle install
bat:
test -d {{bat_theme_dir}} || git clone https://github.com/catppuccin/bat {{bat_theme_dir}}
test -e $(bat --config-file) || @ln -s $(pwd)/bat/config $HOME/.config/bat/config
cd {{bat_theme_dir}} && git fetch && git pull origin main && cd -
bat cache --build
git:
test -e {{git_config}} || ln -s $(pwd)/git/gitconfig {{git_config}}
zsh:
test -e {{zsh_config}} || ln -s $(pwd)/zsh/zshrc {{zsh_config}}
fzf:
test -e $HOME/.fzf.zsh || $(brew --prefix)/opt/fzf/install
espanso:
rm -f "{{espanso_config_dir}}/config/default.yml"
rm -rf "{{espanso_config_dir}}/match/"
test -e "{{espanso_config_dir}}/config/default.yml" || ln -s "$(pwd)/espanso/config/default.yml" "{{espanso_config_dir}}/config/default.yml"
test -d "{{espanso_config_dir}}/match" || ln -s "$(pwd)/espanso/match" "{{espanso_config_dir}}/match"
starship:
test -e {{starship_config}} || ln -s $(pwd)/starship/starship.toml {{starship_config}}
tmux:
test -e {{tmux_config}} || ln -s $(pwd)/tmux/tmux.conf {{tmux_config}}
nvim:
test -d {{nvim_config_dir}} || ln -s $(pwd)/nvim {{nvim_config_dir}}
build: bat git zsh fzf espanso