Skip to main content

Keep track of all your dot(file)s. A dotfiles manager with tool installation.

Project description

freckle

Keep track of all your dot(file)s.

A dotfiles manager with tool installation for Linux and macOS.

Overview

Freckle automates the "bare repo" strategy for dotfiles with intelligent conflict resolution, automatic backups, and cross-platform package management.

Features

  • Interactive Setup: Run freckle init to configure your repository.
  • Bare Repo Management: Safely check out dotfiles into your home directory, backing up conflicts automatically.
  • Profile Support: Manage multiple machine configurations via git branches.
  • Secret Detection: Blocks accidental commits of private keys and tokens.
  • Restore Points: Automatic backups before destructive operations.
  • Declarative Tools: Define tools in config with automatic package manager selection (brew, apt, cargo, pip, npm) and curated script support.
  • Platform Aware: Supports Debian-based Linux (apt) and macOS (brew).
  • Scheduled Backups: Automatic daily/weekly backups via launchd or cron.
  • Health Checks: freckle doctor diagnoses common issues.

Installation

uv tool install freckle

Or with pip:

pip install freckle

Quick Start

# Initialize (interactive setup)
freckle init

# Check status of dotfiles
freckle sync

# Commit and push local changes
freckle backup

# Pull remote changes
freckle update

# Run health checks
freckle doctor

Commands

Core Commands

freckle init              # Interactive setup wizard
freckle sync              # Check dotfiles status, clone on first run
freckle backup            # Commit and push local changes
freckle update            # Pull and apply remote changes
freckle status            # Show detailed status of dotfiles and tools
freckle doctor            # Run health checks and diagnostics

File Management

freckle add <file>        # Track a new file in dotfiles
freckle remove <file>     # Stop tracking a file
freckle config            # Open config file in your editor

Secret detection is built-in. Adding private keys or tokens will be blocked:

$ freckle add .ssh/id_rsa
✗ Blocked: .ssh/id_rsa appears to contain a private key.
  To override: freckle add --force .ssh/id_rsa

Profile Management

Profiles let you maintain different configurations for different machines. Each profile is a git branch:

freckle profile list              # List all profiles
freckle profile switch <name>     # Switch to a profile
freckle profile create <name>     # Create a new profile
freckle profile delete <name>     # Delete a profile

Keep configuration in sync across profiles:

freckle config check              # Check config consistency
freckle config propagate          # Sync config to all branches

Tool Management

Tools are defined in your config and installed via the best available package manager:

freckle tools                     # Show tool installation status
freckle tools install <name>      # Install a specific tool

Backup & Restore

Freckle creates restore points before destructive operations:

freckle restore --list            # List available restore points
freckle restore <timestamp>       # Restore from a specific point

Git Convenience

freckle log               # Show commit history
freckle diff              # Show uncommitted changes

Scheduled Backups

freckle schedule          # Show current schedule status
freckle schedule daily    # Enable daily backups at 9am
freckle schedule weekly   # Enable weekly backups (Sundays)
freckle schedule off      # Disable scheduled backups

Shell Completion

Freckle supports tab completion for bash, zsh, and fish.

# Install completion for your current shell
freckle --install-completion

# Or show the completion script to customize installation
freckle --show-completion

After installation, restart your shell or source your shell config.

Global Options

freckle --verbose ...     # Enable debug logging
freckle sync --dry-run    # Preview what would happen
freckle backup --dry-run  # See what would be committed

Configuration

Freckle stores its configuration in ~/.freckle.yaml.

Example

dotfiles:
  repo_url: "https://github.com/{local_user}/dotfiles.git"
  branch: "main"
  dir: "~/.dotfiles"

profiles:
  default:
    tools:
      - git
      - zsh
      - tmux
      - nvim

  work:
    tools:
      - git
      - zsh
      - docker

tools:
  git:
    brew: git
    apt: git
    config_files:
      - ~/.gitconfig
  zsh:
    brew: zsh
    apt: zsh
    config_files:
      - ~/.zshrc
  nvim:
    brew: neovim
    apt: neovim
    config_files:
      - ~/.config/nvim/
  docker:
    brew: docker
    apt: docker.io

Variables

  • {local_user}: Automatically replaced with your system username.
  • Custom variables: Define your own in the vars section.
vars:
  git_host: "github.com"

dotfiles:
  repo_url: "https://{git_host}/{local_user}/dotfiles.git"

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

freckle-0.6.0.tar.gz (42.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

freckle-0.6.0-py3-none-any.whl (58.8 kB view details)

Uploaded Python 3

File details

Details for the file freckle-0.6.0.tar.gz.

File metadata

  • Download URL: freckle-0.6.0.tar.gz
  • Upload date:
  • Size: 42.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for freckle-0.6.0.tar.gz
Algorithm Hash digest
SHA256 d08b504377c992d61f67b2a84f602e2d6c788333e5a700b8a5aa0d0f7fb69515
MD5 67c3cb439865006f50e6a69262bbc188
BLAKE2b-256 2395d1d9ee59685afd6d26f6d5236a79d4d806cfa578d8c0b573b1d449c554c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for freckle-0.6.0.tar.gz:

Publisher: publish.yml on peterprescott/freckle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file freckle-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: freckle-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 58.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for freckle-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff091ec195042d9de6679acb9113f12e3a9c1f9353a147d29923c917cf8d3c31
MD5 d769c699443844cd983dd7fe4d1d2571
BLAKE2b-256 7dd86d1af6ad6c2ef2f43cb25fb36f8d769670c1c084d3551e63d04286841cf9

See more details on using hashes here.

Provenance

The following attestation bundles were made for freckle-0.6.0-py3-none-any.whl:

Publisher: publish.yml on peterprescott/freckle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page