Skip to content

Commit bf1d2dd

Browse files
feat(shell): add ~/.local/bin to default zsh PATH (#434)
* feat(shell): add ~/.local/bin to default zsh PATH #433 Refs: #433 Assisted-by: opencode/github-copilot/claude-opus-4.6 * fix(shell): use zsh path array for ~/.local/bin to avoid empty PATH edge case #433 Refs: #433 Assisted-by: opencode/github-copilot/claude-opus-4.6
1 parent 5d1d691 commit bf1d2dd

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
- Added `~/.local/bin` to default zsh PATH for user-local binaries (XDG convention), auto-creating the directory if missing
1213
- Added orphan cleanup to `sparkdock-agents-sync`: detects and removes managed skills/agent profiles no longer in upstream, with `--force` to remove locally modified orphans
1314
- Added orphan detection to `sparkdock-agents-status`: flags resources removed from upstream as `orphan` type with cleanup hint
1415
- Added DESCRIPTION column to `sjust sf-agents-status` tables, reading short descriptions from upstream `catalog.json` with tab-delimited rendering to support commas in descriptions

config/shell/init.zsh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ HOMEBREW_PREFIX="/opt/homebrew"
1515
: "${SPARKDOCK_ENABLE_FZF:=1}" # Enabled by default
1616
: "${SPARKDOCK_ENABLE_ATUIN:=0}" # Disabled by default
1717

18+
# Ensure ~/.local/bin exists and is on PATH (user-local binaries, XDG convention).
19+
[[ -d ~/.local/bin ]] || mkdir -p ~/.local/bin
20+
if (( ! ${path[(Ie)${HOME}/.local/bin]} )); then
21+
path=("${HOME}/.local/bin" ${path})
22+
export PATH
23+
fi
24+
1825
# Add local zsh functions directory to fpath (skip if already present).
1926
if [[ -d ~/.local/share/zsh/site-functions ]] && (( ! ${fpath[(Ie)${HOME}/.local/share/zsh/site-functions]} )); then
2027
fpath+=~/.local/share/zsh/site-functions

0 commit comments

Comments
 (0)