{"id":51025242,"url":"https://github.com/en9inerd/zmx-scripts","last_synced_at":"2026-06-21T19:01:04.383Z","repository":{"id":360266475,"uuid":"1248608250","full_name":"en9inerd/zmx-scripts","owner":"en9inerd","description":"Scripts to manage dev workflow under zmx + Ghostty","archived":false,"fork":false,"pushed_at":"2026-06-20T18:53:51.000Z","size":42,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-20T20:20:15.977Z","etag":null,"topics":["bash","ghostty","scripts","sessions","zmx"],"latest_commit_sha":null,"homepage":"","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/en9inerd.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-05-24T21:32:03.000Z","updated_at":"2026-06-20T18:53:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/en9inerd/zmx-scripts","commit_stats":null,"previous_names":["en9inerd/zmx-scripts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/en9inerd/zmx-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/en9inerd%2Fzmx-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/en9inerd%2Fzmx-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/en9inerd%2Fzmx-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/en9inerd%2Fzmx-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/en9inerd","download_url":"https://codeload.github.com/en9inerd/zmx-scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/en9inerd%2Fzmx-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34622271,"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-21T02:00:05.568Z","response_time":54,"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":["bash","ghostty","scripts","sessions","zmx"],"created_at":"2026-06-21T19:01:03.228Z","updated_at":"2026-06-21T19:01:04.318Z","avatar_url":"https://github.com/en9inerd.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zmx-scripts\n\nfzf-driven session picker and project workspace manager for [zmx](https://github.com/neurosnap/zmx), integrated with ghostty.\n\n## Requirements\n\n- [zmx](https://github.com/neurosnap/zmx)\n- [fzf](https://github.com/junegunn/fzf)\n- [fd](https://github.com/sharkdp/fd)\n- ghostty\n\n## Install\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/en9inerd/zmx-scripts/master/install.sh | bash\n```\n\nDownloads scripts to `~/.local/bin/` and copies example config.\n\n## ghostty config\n\nAdd to `~/.config/ghostty/config`:\n\n```ghostty\nshell-integration-features=no-cursor,no-sudo,ssh-terminfo,ssh-env\nwindow-inherit-working-directory = true\n\nkeybind = ctrl+b\u003ef=text:zmx-sessionizer\\n\nkeybind = ctrl+b\u003ew=text:zmx-workspace attach\\n\nkeybind = ctrl+b\u003ex=text:zmx kill $ZMX_SESSION\\n\nkeybind = ctrl+b\u003eshift+x=text:zws kill-session\\n\n```\n\n## zshrc\n\nAppend to `~/.zshrc`:\n\n```zsh\nalias zws='zmx-workspace'\nalias zs='zmx-sessionizer'\n\nsource \u003c(zmx completions zsh)\n\n[[ -n \"$ZMX_SESSION\" ]] \u0026\u0026 GHOSTTY_SHELL_FEATURES=${(j:,:)${(s:,:)GHOSTTY_SHELL_FEATURES:#title}}\n_zmx_title() { [[ -n \"$ZMX_SESSION\" ]] \u0026\u0026 printf '\\e]0;%s\\a' \"$ZMX_SESSION\"; }\nprecmd_functions+=(_zmx_title)\n```\n\nInside zmx sessions, strips `title` from `GHOSTTY_SHELL_FEATURES` before ghostty's deferred init runs — preventing ghostty from installing title hooks. `_zmx_title` then owns the tab title exclusively. Plain shells are unaffected. `precmd_functions+=` must be last in `.zshrc`.\n\n## sessionizer config\n\nEdit `~/.config/zmx-sessionizer/zmx-sessionizer.conf`:\n\n```bash\n# ZMX_SEARCH_PATHS=(~/Development)  # default\n# ZMX_SEARCH_PATHS=(~/Development ~/Work:2)\n# ZMX_MAX_DEPTH=1\n```\n\n## Usage\n\n### zmx-workspace\n\n```bash\nzws new              # create project (name + dir + sessions)\nzws open [project]   # start all sessions for project\nzws attach [project] # fzf pick — flat list of all sessions across all projects, lazy-creates if missing\nzws list             # all projects with session counts\nzws kill [project]   # kill all sessions for project\nzws kill-session     # fzf pick and kill any single session\nzws delete [project] # kill all sessions and remove project config\n```\n\nProject config format (`~/.config/zmx-sessionizer/workspaces/\u003cname\u003e.conf`):\n\n```bash\nZMX_DIR=/path/to/project\nZMX_SESSIONS=(\n    \"editor:nvim .\"\n    \"server:npm start\"\n    \"shell:\"\n)\n```\n\n### Keybinds\n\n| Key            | Action                        |\n|----------------|-------------------------------|\n| Cmd+T          | new tab (plain shell)         |\n| ctrl+b f       | session picker (fzf)          |\n| ctrl+b w       | session picker (all projects) |\n| ctrl+b x       | kill current session          |\n| ctrl+b X       | fzf pick and kill any session |\n| ctrl+\\         | detach from session           |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fen9inerd%2Fzmx-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fen9inerd%2Fzmx-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fen9inerd%2Fzmx-scripts/lists"}