Skip to content

fix: respect CLAUDE_CONFIG_DIR environment variable#13

Merged
graykode merged 1 commit intomainfrom
fix/claude-config-dir
Apr 1, 2026
Merged

fix: respect CLAUDE_CONFIG_DIR environment variable#13
graykode merged 1 commit intomainfrom
fix/claude-config-dir

Conversation

@graykode
Copy link
Copy Markdown
Owner

@graykode graykode commented Apr 1, 2026

Summary

  • Check CLAUDE_CONFIG_DIR env var before falling back to ~/.claude in all path resolution: session/project discovery, rate limit file reading, and --setup hook installation
  • Also updates the StatusLine Python script to use CLAUDE_CONFIG_DIR at runtime

Closes #12

Test plan

  • Set CLAUDE_CONFIG_DIR=~/.claude-pro and verify abtop detects sessions in custom directory
  • Without CLAUDE_CONFIG_DIR set, verify default ~/.claude behavior unchanged
  • Run CLAUDE_CONFIG_DIR=~/.claude-pro abtop --setup and verify script/settings written to correct directory

@graykode graykode merged commit cee7a79 into main Apr 1, 2026
6 checks passed
@graykode graykode deleted the fix/claude-config-dir branch April 1, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Does not detect claude instances if claude's directory is a custom path

1 participant