Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion commands/dotfiles_pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ func pullDotfiles(c *cli.Context) error {
"zsh": model.NewZshApp(),
"bash": model.NewBashApp(),
"ghostty": model.NewGhosttyApp(),
"claude": model.NewClaudeApp(),
}

// Process fetched dotfiles
Expand Down Expand Up @@ -138,7 +139,7 @@ func pullDotfiles(c *cli.Context) error {
// Filter out files that are already equal
filesToUpdate := make(map[string]string)
var pathsToActuallyBackup []string

for path, content := range filesToProcess {
if isEqual, exists := equalityMap[path]; exists && isEqual {
logrus.Debugf("Skipping %s - content is identical", path)
Expand Down
3 changes: 2 additions & 1 deletion commands/dotfiles_push.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func pushDotfiles(c *cli.Context) error {
model.NewZshApp(),
model.NewBashApp(),
model.NewGhosttyApp(),
model.NewClaudeApp(),
}

// Filter apps based on user input
Expand Down Expand Up @@ -97,4 +98,4 @@ func pushDotfiles(c *cli.Context) error {
fmt.Printf("📁 Manage your dotfiles at: %s\n", webLink)

return nil
}
}
27 changes: 27 additions & 0 deletions model/dotfile_claude.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package model

import "context"

// ClaudeApp handles Claude Code configuration files
type ClaudeApp struct {
BaseApp
}

func NewClaudeApp() DotfileApp {
return &ClaudeApp{}
}

func (c *ClaudeApp) Name() string {
return "claude"
}

func (c *ClaudeApp) GetConfigPaths() []string {
return []string{
"~/.claude/settings.json",
"~/.claude/CLAUDE.md",
}
}

func (c *ClaudeApp) CollectDotfiles(ctx context.Context) ([]DotfileItem, error) {
return c.CollectFromPaths(ctx, c.Name(), c.GetConfigPaths())
}
Loading