{"id":22064335,"url":"https://github.com/zimfw/magicmace","last_synced_at":"2025-07-17T06:08:15.074Z","repository":{"id":108622448,"uuid":"163337254","full_name":"zimfw/magicmace","owner":"zimfw","description":"A prompt theme inspired by xero's and eriner's themes.","archived":false,"fork":false,"pushed_at":"2024-12-19T01:41:02.000Z","size":20,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T12:13:09.327Z","etag":null,"topics":["prompt","theme","zim","zimfw","zsh","zsh-plugin","zsh-plugins","zsh-prompt","zsh-theme"],"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/zimfw.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}},"created_at":"2018-12-27T21:24:53.000Z","updated_at":"2024-12-19T01:41:05.000Z","dependencies_parsed_at":"2023-03-25T20:34:03.627Z","dependency_job_id":null,"html_url":"https://github.com/zimfw/magicmace","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zimfw%2Fmagicmace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zimfw%2Fmagicmace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zimfw%2Fmagicmace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zimfw%2Fmagicmace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zimfw","download_url":"https://codeload.github.com/zimfw/magicmace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248710447,"owners_count":21149191,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["prompt","theme","zim","zimfw","zsh","zsh-plugin","zsh-plugins","zsh-prompt","zsh-theme"],"created_at":"2024-11-30T19:04:08.167Z","updated_at":"2025-04-13T12:13:13.429Z","avatar_url":"https://github.com/zimfw.png","language":"Shell","readme":"magicmace\n=========\n\nIdeas and code taken from [xero's zsh prompt] and [eriner's prompt].\n\n\u003cimg width=\"706\" src=\"https://zimfw.github.io/images/prompts/magicmace@2.png\"\u003e\n\nWhat does it show?\n------------------\n\n  * Status segment:\n    * Status code in error color when there was an error.\n    * `b` when there are background jobs.\n    * `r` when in a [ranger] spawned shell.\n    * `v` when a python [venv] is activated.\n  * The current working directory.\n  * Git segment, only when you're in a git repo:\n    * Current branch name, or commit short hash when in ['detached HEAD' state].\n    * `*` when in a dirty working tree.\n    * `↑` and/or `↓` when there are commits ahead and/or behind of remote,\n      respectively.\n\nSettings\n--------\n\nThis theme can be customized with the following environment variables. If the\nvariable is not defined, the respective default value is used.\n\n| Variable     | Description              | Default value |\n| ------------ | ------------------------ | ------------- |\n| COLOR_ROOT   | Root-user mace color     | red           |\n| COLOR_USER   | Non-root-user mace color | cyan          |\n| COLOR_NORMAL | Normal text color        | white         |\n| COLOR_ERROR  | Error text color         | red           |\n\nAdvanced settings\n-----------------\n\nYou can customize how the current working directory is shown with the\n[prompt-pwd module settings].\n\nThe git indicators can be customized by changing the following git-info module\ncontext formats:\n\n| Context name | Description       | Default format |\n| ------------ | ----------------- | -------------- |\n| branch       | Branch name       | `%b`           |\n| commit       | Commit short hash | `%c...`        |\n| ahead        | Ahead of remote   | `↑`            |\n| behind       | Behind remote     | `↓`            |\n| dirty        | Dirty state       | `*`            |\n\nUse the following command to override a git-info context format:\n\n    zstyle ':zim:git-info:\u003ccontext_name\u003e' format '\u003cnew_format\u003e'\n\nFor detailed information about these and other git-info settings, check the\n[git-info documentation].\n\nThese advanced settings must be overridden after the theme is initialized.\n\nRequirements\n------------\n\nRequires Zim's [prompt-pwd] module to show the current working directory, and\n[git-info] to show git information.\n\n[xero's zsh prompt]: https://github.com/xero/dotfiles\n[eriner's prompt]: https://github.com/zimfw/eriner\n[ranger]: https://github.com/ranger/ranger\n[venv]: https://docs.python.org/3/library/venv.html\n['detached HEAD' state]: https://git-scm.com/docs/git-checkout#_detached_head\n[prompt-pwd module settings]: https://github.com/zimfw/prompt-pwd/blob/master/README.md#settings\n[git-info documentation]: https://github.com/zimfw/git-info/blob/master/README.md#settings\n[prompt-pwd]: https://github.com/zimfw/prompt-pwd\n[git-info]: https://github.com/zimfw/git-info\n","funding_links":[],"categories":["Themes","Shell"],"sub_categories":["ZSH on Windows","Zinit (née zplugin)"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzimfw%2Fmagicmace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzimfw%2Fmagicmace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzimfw%2Fmagicmace/lists"}