-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
67 lines (55 loc) · 1.87 KB
/
Copy pathJustfile
File metadata and controls
67 lines (55 loc) · 1.87 KB
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
home := env("HOME")
packages := "aerospace alacritty atuin helix karabiner nushell yazi zellij zsh"
plugin_dir := home / ".config/zellij/plugins"
zjstatus_version := "v0.22.0"
monocle_version := "v0.100.2"
# List available recipes
default:
@just --list
# Stow all packages
stow:
stow -t {{ home }} {{ packages }}
# Unstow all packages
unstow:
stow -t {{ home }} -D {{ packages }}
# Restow all packages (useful after adding new files)
restow:
stow -t {{ home }} -R {{ packages }}
# Stow a single package
add package:
stow -t {{ home }} {{ package }}
# Unstow a single package
remove package:
stow -t {{ home }} -D {{ package }}
# Show what would be stowed (dry run)
plan:
stow -t {{ home }} -n -v {{ packages }}
# Download zellij plugins
plugins:
mkdir -p {{ plugin_dir }}
curl -fsSL -o {{ plugin_dir }}/zjstatus.wasm \
"https://github.com/dj95/zjstatus/releases/download/{{ zjstatus_version }}/zjstatus.wasm"
curl -fsSL -o {{ plugin_dir }}/monocle.wasm \
"https://github.com/imsnif/monocle/releases/download/{{ monocle_version }}/monocle.wasm"
@echo "Downloaded zjstatus {{ zjstatus_version }} and monocle {{ monocle_version }}"
# Install dependencies via Homebrew
deps:
brew install stow starship atuin yazi helix zellij eza just
brew install --cask nikitabobko/tap/aerospace
# Set zellij default shell (zsh or nu)
shell name:
#!/usr/bin/env bash
config="zellij/.config/zellij/config.kdl"
if [[ "{{ name }}" == "zsh" ]]; then
target=/bin/zsh
elif [[ "{{ name }}" == "nu" ]]; then
target=/opt/homebrew/bin/nu
else
echo "Usage: just shell [zsh|nu]"
exit 1
fi
sed -i '' 's|^default_shell ".*"|default_shell "'"$target"'"|' "$config"
echo "Zellij default shell set to $target"
echo "Restart zellij to apply"
# Full setup: deps, stow, plugins
setup: deps stow plugins