{"id":51095629,"url":"https://github.com/gufranco/tmux-autoreload-revamped","last_synced_at":"2026-06-24T06:02:20.869Z","repository":{"id":366697071,"uuid":"1277330478","full_name":"gufranco/tmux-autoreload-revamped","owner":"gufranco","description":"Auto-reload your tmux config on save. fswatch, inotifywait, or a pure-shell polling fallback (no entr), one watcher per server, no stacking. 95%+ tested","archived":false,"fork":false,"pushed_at":"2026-06-22T23:23:50.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-23T01:12:08.674Z","etag":null,"topics":["autoreload","bash","config-reload","dotfiles","file-watcher","fswatch","inotify","shell","tmux","tmux-plugin","tpm"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gufranco.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-22T19:52:00.000Z","updated_at":"2026-06-22T23:23:54.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gufranco/tmux-autoreload-revamped","commit_stats":null,"previous_names":["gufranco/tmux-autoreload-revamped"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/gufranco/tmux-autoreload-revamped","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gufranco%2Ftmux-autoreload-revamped","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gufranco%2Ftmux-autoreload-revamped/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gufranco%2Ftmux-autoreload-revamped/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gufranco%2Ftmux-autoreload-revamped/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gufranco","download_url":"https://codeload.github.com/gufranco/tmux-autoreload-revamped/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gufranco%2Ftmux-autoreload-revamped/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34719307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autoreload","bash","config-reload","dotfiles","file-watcher","fswatch","inotify","shell","tmux","tmux-plugin","tpm"],"created_at":"2026-06-24T06:02:20.193Z","updated_at":"2026-06-24T06:02:20.854Z","avatar_url":"https://github.com/gufranco.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003ch1\u003etmux-autoreload-revamped\u003c/h1\u003e\n\n**Edit your tmux config, save, and watch it reload itself, no key, no command.**\n\n[![Tests](https://github.com/gufranco/tmux-autoreload-revamped/actions/workflows/tests.yml/badge.svg)](https://github.com/gufranco/tmux-autoreload-revamped/actions/workflows/tests.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n\n\u003c/div\u003e\n\n**3** watcher backends · **no entr** · **tmux 1.9 to 3.5** · **42** tests · **95%+** coverage\n\nWatches every loaded tmux config file and sources it the moment it changes. It uses `fswatch` or `inotifywait` when they are installed, and a built-in polling loop otherwise, so it works out of the box with no extra dependency. One watcher per server, tracked by pid, so reloads never stack up.\n\nBuilt from [tmux-plugin-template](https://github.com/gufranco/tmux-plugin-template).\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eThree backends\u003c/strong\u003e\u003cbr\u003efswatch, inotifywait, or a pure-shell poll fallback, picked automatically.\u003c/td\u003e\n\u003ctd\u003e\u003cstrong\u003eNo dependency\u003c/strong\u003e\u003cbr\u003eThe poll fallback needs nothing but tmux and a shell. No entr, no Python.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eNo stacking\u003c/strong\u003e\u003cbr\u003eThe watcher pid lives in a server option; each load kills the previous watcher first.\u003c/td\u003e\n\u003ctd\u003e\u003cstrong\u003eWatches everything\u003c/strong\u003e\u003cbr\u003eEvery file tmux actually loaded, plus any extra files you name.\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n## Usage\n\nInstall it and forget it. Save your `~/.tmux.conf`, or any sourced file, and tmux reloads on its own with a brief \"tmux config reloaded\" message.\n\n## Install\n\nWith [TPM](https://github.com/tmux-plugins/tpm), add to `~/.tmux.conf`:\n\n```tmux\nset -g @plugin 'gufranco/tmux-autoreload-revamped'\n```\n\nPress `prefix + I`. For event-driven reloads install [fswatch](https://github.com/emcrisostomo/fswatch) or inotify-tools; without them the polling fallback takes over automatically.\n\n## Configuration\n\n| Option | Default | Meaning |\n|--------|---------|---------|\n| `@autoreload_revamped_files` | empty | the exact files to watch, comma or space separated, with `~` expanded; when set it replaces the default, so you can watch only your own config. Empty means watch every file tmux loaded |\n| `@autoreload_revamped_entrypoints` | loaded config | files to source on reload |\n| `@autoreload_revamped_interval` | `2` | seconds between checks in the polling fallback |\n| `@autoreload_revamped_quiet` | `0` | set to `1` to suppress the reload message |\n\n## Compatibility\n\nWorks on every tmux version TPM supports, 1.9 and up, on Linux (x86_64 and arm64) and macOS (Intel and Apple Silicon). The mtime check reads GNU `stat -c` first and BSD `stat -f` as a fallback, so it is correct on Linux, on native macOS, and on a Mac with GNU coreutils in `PATH`. The `#{config_files}` source list needs tmux 3.2 and up; on older tmux, name your files with `@autoreload_revamped_files`.\n\n## Development\n\n```bash\nmake test    # bats suite\nmake lint    # shellcheck\nmake coverage  # kcov line coverage on Linux\n```\n\nWatcher selection, change detection, and path normalization live in [`src/lib/autoreload/autoreload.sh`](src/lib/autoreload/autoreload.sh) as pure functions, with the blocking watch loop split behind seams so the reload logic is fully tested without a real watcher.\n\n## License\n\n[MIT](LICENSE), copyright Gustavo Franco.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgufranco%2Ftmux-autoreload-revamped","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgufranco%2Ftmux-autoreload-revamped","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgufranco%2Ftmux-autoreload-revamped/lists"}