{"id":47402291,"url":"https://github.com/code-brewer/EyeRelax-zsh-theme","last_synced_at":"2026-04-03T17:00:54.893Z","repository":{"id":211600138,"uuid":"729142197","full_name":"code-brewer/EyeRelax-zsh-theme","owner":"code-brewer","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-09T15:42:56.000Z","size":1399,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-12-09T16:35:17.660Z","etag":null,"topics":[],"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/code-brewer.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}},"created_at":"2023-12-08T14:12:06.000Z","updated_at":"2023-12-09T16:35:19.854Z","dependencies_parsed_at":"2023-12-09T16:45:21.061Z","dependency_job_id":null,"html_url":"https://github.com/code-brewer/EyeRelax-zsh-theme","commit_stats":null,"previous_names":["code-brewer/eyerelax-zsh-theme"],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/code-brewer/EyeRelax-zsh-theme","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-brewer%2FEyeRelax-zsh-theme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-brewer%2FEyeRelax-zsh-theme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-brewer%2FEyeRelax-zsh-theme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-brewer%2FEyeRelax-zsh-theme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code-brewer","download_url":"https://codeload.github.com/code-brewer/EyeRelax-zsh-theme/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-brewer%2FEyeRelax-zsh-theme/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31364577,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T15:19:21.178Z","status":"ssl_error","status_checked_at":"2026-04-03T15:19:20.670Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-03-20T13:00:34.982Z","updated_at":"2026-04-03T17:00:54.879Z","avatar_url":"https://github.com/code-brewer.png","language":"Shell","readme":"# EyeRelax-zsh-theme\n\n## Overview\n\nThis is an oh-my-zsh theme with informative git status, venv/Anaconda environment info and command execution time.\n\n![demo.png](./readme/demo.png)\n\nShow time cost when it run longer than 1 second ( You can change this threshold by edit theme script)\n\n![costline.png](./readme/show_cost_line_or_not.png)\n\n\n### Features\n\nYou can see the followings at once:\n\n- Real time\n- Login user\n- Working directory\n- Venv/Anaconda's environment name\n- Rich git status\n\nAfter command execution, you can see also:\n\n- Command execution time\n- Success/Error hint\n\n### Credits\n\nThis project is base on \"simplerich-zsh-theme\" and borrow code from \"ohmyzsh-theme-passion\", \nalso some modification accordding to my own preferences.\n\n- [ohmyzsh-theme-passion](https://github.com/ChesterYue/ohmyzsh-theme-passion)\n- [simplerich-zsh-theme](https://github.com/philip82148/simplerich-zsh-theme)\n\n## Git Status Symbols\n\nThe git status is updated immediately after a command is finished or every 10 seconds after the terminal is started.\n\n| Symbol        | Meaning                                                                                                                     |\n| ------------- | --------------------------------------------------------------------------------------------------------------------------- |\n| `[main]`      | The repository is clean.                                                                                                    |\n| `[main +n]`   | There are n staged files.                                                                                                   |\n| `[main ●n]`   | There are n changed but unstaged files.                                                                                     |\n| `[main …n]`   | There are n untracked files.                                                                                                |\n| `[main xn]`   | There are n conflicting files.                                                                                              |\n| `[main n\\|m]` | The local branch is m commits ahead and n commits behind the remote branch.                                                 |\n| `[main *]`    | This will be displayed instead of the informative symbols\u003cbr /\u003ewhen python cannot be executed and the repository not clean. |\n\n## Install\n\n1. Clone the repository \u0026 copy the zsh-theme file.\n\n```shell\n# cd path/to/where_u_want_to_clone_the_repo\ngit clone --recursive https://gitee.com/cloud-wang/EyeRelax-zsh-theme\ncp ./EyeRelax-zsh-theme/EyeRelax.zsh-theme ~/.oh-my-zsh/themes/\n```\n\n2. Edit ~/.zshrc.\n\n```shell\n# file:~/.zshrc\n# Find the line that reads ZSH_THEME=\"...\" and replace it with the followings.\nZSH_THEME=\"EyeRelax\"\nsource path/to/where_u_want_to_clone_the_repo/EyeRelax-zsh-theme/zsh-git-prompt/zshrc.sh\n```\n\n**Attention**\n\n- These must be BEFORE the line `source $ZSH/oh-my-zsh.sh` in `~/.zshrc`.\n- Change the path of `source .../zsh-git-prompt/zshrc.sh` according to your environment.\n- If you comment out `source .../zsh-git-prompt/zshrc.sh` or you cannot use `python` command, you can use a eye_relax git status like the following:  \n  ![eye_relax_git_status.png](./readme/eye_relax_git_status.png)\n\n3. If you use venv, remove the original display of the environment name.\n\n```shell\necho \"export VIRTUAL_ENV_DISABLE_PROMPT=1\" \u003e\u003e ~/.zshrc\n```\n\nOr if you use Anaconda, run this:\n\n```shell\nconda config --set changeps1 False\n```\n\n4. Load ~/.zshrc.\n\n```shell\nsource ~/.zshrc\n```\n\nSee also [Overriding and adding themes](https://github.com/ohmyzsh/ohmyzsh/wiki/Customization#overriding-and-adding-themes) and [zsh-git-prompt](https://github.com/olivierverdier/zsh-git-prompt).\n\n## Trouble Shooting\n\n### On macOS, Command Not Found: gdate\n\n- EyeRelax.zsh-theme depends on cmd `gdate` to get current time in milliseconds. get `gdate` on macOS by running `brew install coreutils` then `source ~/.zshrc`.\n- See also [#12](https://github.com/ChesterYue/ohmyzsh-theme-passion/issues/12).\n\n### On Linux, Command Not Found: bc\n\n- EyeRelax.zsh-theme depends on cmd `bc` to calculate the command running time cost. [get bc on Linux](https://www.tecmint.com/bc-command-examples/#:~:text=If%20you%20don%E2%80%99t%20have%20bc%20on%20your%20system%2C,command%20prompt%20and%20simply%20start%20calculating%20your%20expressions.) then `source ~/.zshrc`.\n- See also [#13](https://github.com/ChesterYue/ohmyzsh-theme-passion/issues/13).\n\n### On Centos 7, Shell Exit\n\n- It may be caused by [set timer to zsh prompt](https://github.com/ChesterYue/ohmyzsh-theme-passion/blob/8f71c43c2df91810249ab00ff40fc4ca63207467/passion.zsh-theme#L197-L208).\n- See also [#4](https://github.com/ChesterYue/ohmyzsh-theme-passion/issues/4).\n\n## Extra Preferences\n\n### Zsh Plugins\n\n1. [zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions)\n2. [zsh-syntax-highlighting](https://github.com/zsh-users/zsh-syntax-highlighting)\n3. [zsh-completions](https://github.com/zsh-users/zsh-completions)\n4. [zsh-history-substring-search](https://github.com/zsh-users/zsh-history-substring-search)\n\n### iTerm2 Preferences\n\n#### Color\n\n\u003c!-- cspell:disable-next-line --\u003e\n\n- iTerm2: Settings -\u003e Profiles -\u003e Colors -\u003e Color Presets -\u003e Import `./EyeRelax.itermcolors`\n  ![color.png](./readme/color.png)\n- Alternate terminal: Try [Alternate terminal installation and configuration](https://iterm2colorschemes.com/).\n\n#### Status Bar\n\n- iTerm2: Settings -\u003e Appearance \u0026\u0026 settings -\u003e Profiles -\u003e Session -\u003e Configure Status Bar\n  ![status_0.png](./readme/status_0.png) ![status_1.png](./readme/status_1.png)\n\n#### Font\n\n- Install [JetBrains Mono](https://www.jetbrains.com/lp/mono/).\n- iTerm2: Settings -\u003e Appearance \u0026\u0026 settings -\u003e Profiles -\u003e Text -\u003e Font\n  ![font.png](./readme/font.png)\n","funding_links":[],"categories":["Themes"],"sub_categories":["ZSH on Windows"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-brewer%2FEyeRelax-zsh-theme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-brewer%2FEyeRelax-zsh-theme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-brewer%2FEyeRelax-zsh-theme/lists"}