Skip to content

Commit fbba1b3

Browse files
committed
fix: replace deprecated tldr with tealdeer, add brew shellenv to PATH setup
1 parent 64e8b38 commit fbba1b3

5 files changed

Lines changed: 16 additions & 10 deletions

File tree

internal/config/data/packages.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ categories:
2828
desc: Resource monitor
2929
- name: tree
3030
desc: Directory tree viewer
31-
- name: tldr
32-
desc: Simplified man pages
31+
- name: tealdeer
32+
desc: Simplified man pages (tldr)
3333

3434
- name: Git & GitHub
3535
icon: "🔀"

internal/config/data/presets.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ presets:
1616
- htop
1717
- btop
1818
- tree
19-
- tldr
19+
- tealdeer
2020
- gh
2121
- git-delta
2222
- git-lfs
@@ -46,7 +46,7 @@ presets:
4646
- htop
4747
- btop
4848
- tree
49-
- tldr
49+
- tealdeer
5050
- gh
5151
- git-delta
5252
- git-lfs
@@ -101,7 +101,7 @@ presets:
101101
- htop
102102
- btop
103103
- tree
104-
- tldr
104+
- tealdeer
105105
- gh
106106
- git-delta
107107
- git-lfs

internal/shell/shell.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,13 @@ func ConfigureZshrc(dryRun bool) error {
5353

5454
additions := `
5555
# OpenBoot additions
56-
export PATH="$HOME/.local/bin:$PATH"
56+
# Homebrew (must come before /usr/bin)
57+
if [ -f /opt/homebrew/bin/brew ]; then
58+
eval "$(/opt/homebrew/bin/brew shellenv)"
59+
elif [ -f /usr/local/bin/brew ]; then
60+
eval "$(/usr/local/bin/brew shellenv)"
61+
fi
62+
export PATH="$HOME/.openboot/bin:$HOME/.local/bin:$PATH"
5763
5864
# Modern CLI aliases
5965
alias ls="eza --icons"

internal/snapshot/match_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func TestDetectBestPreset_MinimalPreset(t *testing.T) {
168168
Packages: PackageSnapshot{
169169
Formulae: []string{
170170
"curl", "wget", "jq", "yq", "ripgrep", "fd", "bat", "eza",
171-
"fzf", "zoxide", "htop", "btop", "tree", "tldr", "gh", "git-delta",
171+
"fzf", "zoxide", "htop", "btop", "tree", "tealdeer", "gh", "git-delta",
172172
},
173173
Casks: []string{},
174174
Npm: []string{},
@@ -189,7 +189,7 @@ func TestDetectBestPreset_DeveloperPreset(t *testing.T) {
189189
Packages: PackageSnapshot{
190190
Formulae: []string{
191191
"curl", "wget", "jq", "yq", "ripgrep", "fd", "bat", "eza",
192-
"fzf", "zoxide", "htop", "btop", "tree", "tldr", "gh", "git-delta",
192+
"fzf", "zoxide", "htop", "btop", "tree", "tealdeer", "gh", "git-delta",
193193
"git-lfs", "lazygit", "pre-commit", "stow", "node", "go", "pnpm",
194194
"docker", "docker-compose", "lazydocker", "tmux", "neovim", "httpie",
195195
},

test/integration/snapshot_integration_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ func TestIntegration_DetectBestPreset(t *testing.T) {
189189
name: "minimal preset packages - many packages from minimal",
190190
formulae: []string{
191191
"curl", "wget", "jq", "yq", "ripgrep", "fd", "bat", "eza",
192-
"fzf", "zoxide", "htop", "btop", "tree", "tldr", "gh", "git-delta",
192+
"fzf", "zoxide", "htop", "btop", "tree", "tealdeer", "gh", "git-delta",
193193
},
194194
casks: []string{},
195195
npm: []string{},
@@ -199,7 +199,7 @@ func TestIntegration_DetectBestPreset(t *testing.T) {
199199
name: "developer preset packages - many packages from developer",
200200
formulae: []string{
201201
"curl", "wget", "jq", "yq", "ripgrep", "fd", "bat", "eza",
202-
"fzf", "zoxide", "htop", "btop", "tree", "tldr", "gh", "git-delta",
202+
"fzf", "zoxide", "htop", "btop", "tree", "tealdeer", "gh", "git-delta",
203203
"lazygit", "stow", "node", "go", "pnpm", "docker", "docker-compose",
204204
"tmux", "neovim", "httpie",
205205
},

0 commit comments

Comments
 (0)