feat: source ~/.myfiles/shell/claude.zsh from .zshrc#245
Merged
tamakiii-claude[bot] merged 1 commit intomainfrom Apr 26, 2026
Merged
feat: source ~/.myfiles/shell/claude.zsh from .zshrc#245tamakiii-claude[bot] merged 1 commit intomainfrom
tamakiii-claude[bot] merged 1 commit intomainfrom
Conversation
Activates the `claude()` shell function shipped in tamakiii/myfiles#219, which pre-loads frequently used --add-dir paths (~/.myfiles, the Obsidian vault, ~/Git/tamakiii/meta/main) so they don't have to be re-added by hand at the start of each Claude Code session. The guard `[[ -f ... ]]` keeps .zshrc loadable on hosts where the myfiles half hasn't been installed yet. Related to tamakiii/meta#276 Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
One-line companion to tamakiii/myfiles#219 (now merged), exactly as specified in tamakiii/meta#276. The [[ -f ~/.myfiles/shell/claude.zsh ]] guard prevents .zshrc startup failures on hosts where the myfiles half hasn't installed yet, which matches the same defensive posture as the launcher's missing-path filtering. Body references both #276 (issue) and #219 (sibling PR) with markdown links and uses Related to per the manual-closure convention. Pre-existing modifications elsewhere in the dotfiles working tree were correctly left unstaged. Approving.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.zshrcthat activates theclaude()shell function shipped in tamakiii/myfiles#219.[[ -f ~/.myfiles/shell/claude.zsh ]]keeps.zshrcloadable on hosts where the myfiles half hasn't been installed yet.Context
tamakiii/myfiles#219 added
shell/claude.zshdefining aclaude()function that injects--add-dir <path>for each existing default path (~/.myfiles,~/Documents/Obsidian/tamakiii-hdd,~/Git/tamakiii/meta/main) before exec'ing the real binary viacommand claude. Without a sourcing line in.zshrc, the file is inert. This PR is that one-line companion.The split exists because
~/.myfilesowns the launcher logic (private half of the dotfiles system) while~/.dotfilesowns shell init.Test plan
make installfrom~/.dotfiles: open a fresh shell and runtype claude. Should reportclaude is a shell function from /home/tamakiii/.myfiles/shell/claude.zshinstead of pointing at~/.local/bin/claude.claude --versionshould still print the version (the wrapper passes args through and execs the real binary).~/.myfilesinstalled (or before install completes), the file-test guard prevents a failure during shell startup.Related to tamakiii/meta#276
🤖 Generated with Claude Code