-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
68 lines (53 loc) · 2.14 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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"
fish_config_dir := "$HOME/.config/fish"
ghostty_config_dir := "$HOME/.config/ghostty"
ghostty:
test -d {{ghostty_config_dir}} || ln -s $(pwd)/ghostty {{ghostty_config_dir}}
fish: fisher
#!/opt/homebrew/bin/fish
if type -q atuin
echo "Setting up atuin..."
atuin init fish | source
else
echo "atuin is not installed"
end
fisher:
test -d {{fish_config_dir}} || ln -s $(pwd)/fish {{fish_config_dir}}
fish -c {{fish_config_dir}}/scripts/install_fisher.fish
fish -c 'fisher install PatrickF1/fzf.fish'
fish -c 'fisher install catppuccin/fish'
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