{"id":22273714,"url":"https://github.com/mrz07/shinkansen.zsh-theme","last_synced_at":"2026-04-13T14:33:15.981Z","repository":{"id":49255082,"uuid":"474762176","full_name":"MRZ07/shinkansen.zsh-theme","owner":"MRZ07","description":"Shinkansen is a fast, customizable and easily expandable terminal theme","archived":false,"fork":false,"pushed_at":"2024-09-20T18:36:13.000Z","size":5362,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-20T02:14:15.266Z","etag":null,"topics":["bash","bullettrain","iterm2","iterm2-theme","oh-my-zsh","oh-my-zsh-theme","omz","powerlevel10k","powerlevel9k","prompt","shell","terminal","theme","zsh","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/MRZ07.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}},"created_at":"2022-03-27T21:17:49.000Z","updated_at":"2024-09-20T18:36:17.000Z","dependencies_parsed_at":"2025-03-25T16:53:32.953Z","dependency_job_id":null,"html_url":"https://github.com/MRZ07/shinkansen.zsh-theme","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MRZ07/shinkansen.zsh-theme","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MRZ07%2Fshinkansen.zsh-theme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MRZ07%2Fshinkansen.zsh-theme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MRZ07%2Fshinkansen.zsh-theme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MRZ07%2Fshinkansen.zsh-theme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MRZ07","download_url":"https://codeload.github.com/MRZ07/shinkansen.zsh-theme/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MRZ07%2Fshinkansen.zsh-theme/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31757477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T13:27:56.013Z","status":"ssl_error","status_checked_at":"2026-04-13T13:21:23.512Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["bash","bullettrain","iterm2","iterm2-theme","oh-my-zsh","oh-my-zsh-theme","omz","powerlevel10k","powerlevel9k","prompt","shell","terminal","theme","zsh","zsh-theme"],"created_at":"2024-12-03T13:15:29.786Z","updated_at":"2026-04-13T14:33:15.956Z","avatar_url":"https://github.com/MRZ07.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/MRZ07/shinkansen.zsh-theme/main/img/shinkansen-icon.png\" width=\"50%\" /\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  Shinkansen is a fast, customizable and easily expandable terminal theme\n\u003c/p\u003e\n\n![Preview](http://raw.github.com/MRZ07/shinkansen.zsh-theme/master/img/preview.gif)\n\n## Features\n\nIt currently shows:\n\n- Current Python version when using virtualenv otherwise the installed version\n- Current Ruby version using chruby; version and gemset when on RVM or Rbenv\n- Current Node.js version\n- Current Java version\n- Current Go version\n- Current Perl version using plenv\n- Current Elixir version\n- Git status\n- Time in 12h or 24h format\n- Current directory\n- Custom Message\n- Exit code of last command\n- Execution time of command\n\nAnd much more...\n\nIf you want add some new feature, of fix some bug, open an issue and lets hack together.\n\n## Requirements\n\nIn order to use the theme, you will first need:\n\n- Powerline compatible fonts\n- On Ubuntu like systems you'll need the `ttf-ancient-fonts` package to correctly display some unicode symbols that are not covered by the Powerline fonts above.\n- A ZSH framework like [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh), [antigen](https://github.com/zsh-users/antigen) or [zgenom](https://github.com/jandamm/zgenom).\n- Make sure terminal is using 256-colors mode with `export TERM=\"xterm-256color\"`\n- For [iTerm 2](http://iterm2.com/) users, make sure you go into your settings and set both the regular font and the non-ascii font to powerline compatible [fonts](https://github.com/powerline/fonts) or the prompt separators and special characters will not display correctly.\n\n## Installing\n\n### For oh-my-zsh users\n\n1. Download the theme [here](http://raw.github.com/MRZ07/shinkansen.zsh-theme/master/shinkansen.zsh-theme)\n\n2. Put the file **shinkansen.zsh-theme** in **$ZSH_CUSTOM/themes/**\n\n3. Configure the theme in your **~/.zshrc** file:\n\n```bash\nZSH_THEME=\"shinkansen\"\n```\n\n### For antigen users\n\nAdd the following snippet to your **.zshrc** somewhere after the line\n`antigen use oh-my-zsh`.\n\n```bash\nantigen theme https://github.com/MRZ07/shinkansen.zsh-theme shinkansen\n```\n\n### For Zgenom users\n\nIf you're using [zgenom](https://github.com/jandamm/zgenom), add the following line to your **~/.zshrc** where you're adding your other zsh plugins **after** the line `zgenom oh-my-zsh`.\n\n```bash\nzgenom load mrz07/shinkansen.zsh-theme shinkansen\n```\n\n### For Zplug users\n\nIf you're using [zplug](https://github.com/zplug/zplug), add the following line\nto your **~/.zshrc** where you're adding your other zsh plugins.\n\n```bash\nsetopt prompt_subst # Make sure prompt is able to be generated properly.\nzplug \"mrz07/shinkansen.zsh\", use:shinkansen.zsh-theme, defer:3 # defer until other plugins like oh-my-zsh is loaded\n```\n\n## Options\n\nShinkansen is configurable. You can change colors and which segments you want\nor don't want to see. All options must be overridden in your **.zshrc** file.\n\n### Order\n\n`SHINKANSEN_PROMPT_ORDER` defines order of prompt segments. Use zsh array\nsyntax to specify your own order, e.g:\n\n```bash\nSHINKANSEN_PROMPT_ORDER=(\n  git\n  context\n  dir\n  time\n)\n```\n\nNOTE: You do not need to specify _end_ segment - it will be added automatically. With this you can also specify custom segments.\n\n### Prompt\n\n| Variable                          | Default | Meaning                                          |\n| --------------------------------- | ------- | ------------------------------------------------ |\n| `SHINKANSEN_PROMPT_CHAR`          | `\\$`    | Character to be show before any command          |\n| `SHINKANSEN_PROMPT_ROOT`          | `true`  | Highlight if running as root                     |\n| `SHINKANSEN_PROMPT_SEPARATE_LINE` | `true`  | Make the prompt span across two lines            |\n| `SHINKANSEN_PROMPT_ADD_NEWLINE`   | `true`  | Adds a newline character before each prompt line |\n\n### Status\n\n| Variable                      | Default | Meaning                                                            |\n| ----------------------------- | ------- | ------------------------------------------------------------------ |\n| `SHINKANSEN_STATUS_EXIT_SHOW` | `false` | Show/hide exit code of last command                                |\n| `SHINKANSEN_STATUS_BG`        | `green` | Background color                                                   |\n| `SHINKANSEN_STATUS_ERROR_BG`  | `red`   | Background color of segment when last command exited with an error |\n| `SHINKANSEN_STATUS_FG`        | `black` | Foreground color                                                   |\n\n### Time\n\n| Variable               | Default | Meaning                                 |\n| ---------------------- | ------- | --------------------------------------- |\n| `SHINKANSEN_TIME_12HR` | `false` | Format time using 12-hour clock (am/pm) |\n| `SHINKANSEN_TIME_BG`   | `white` | Background color                        |\n| `SHINKANSEN_TIME_FG`   | `black` | Foreground color                        |\n\n### Custom Message\n\n| Variable                | Default   | Meaning                                                                          |\n| ----------------------- | --------- | -------------------------------------------------------------------------------- |\n| `SHINKANSEN_CUSTOM_MSG` | `false`   | Free segment you can put a custom message which will be eval'ed for every prompt |\n| `SHINKANSEN_CUSTOM_BG`  | `black`   | Background color                                                                 |\n| `SHINKANSEN_CUSTOM_FG`  | `default` | Foreground color                                                                 |\n\n### Context\n\n| Variable                          | Default   | Meaning                                                                                          |\n| --------------------------------- | --------- | ------------------------------------------------------------------------------------------------ |\n| `SHINKANSEN_CONTEXT_BG`           | `black`   | Background color                                                                                 |\n| `SHINKANSEN_CONTEXT_FG`           | `default` | Foreground color                                                                                 |\n| `SHINKANSEN_CONTEXT_DEFAULT_USER` | none      | Default user. If you are running with other user other than default, the segment will be showed. |\n| `SHINKANSEN_CONTEXT_HOSTNAME`     | `%m`      | Hostname. Set %M to display the full qualified domain name.                                      |\n| `SHINKANSEN_IS_SSH_CLIENT`        | none      | If `true`, the segment will be showed.                                                           |\n\n### Python virtualenv (+Pyenv)\n\n| Variable                       | Default  | Meaning               |\n| ------------------------------ | -------- | --------------------- |\n| `SHINKANSEN_VIRTUALENV_BG`     | `yellow` | Background color      |\n| `SHINKANSEN_VIRTUALENV_FG`     | `white`  | Foreground color      |\n| `SHINKANSEN_VIRTUALENV_PREFIX` | `🐍`     | Prefix of the segment |\n\n### node.js\n\n| Variable                | Default | Meaning               |\n| ----------------------- | ------- | --------------------- |\n| `SHINKANSEN_NVM_BG`     | `green` | Background color      |\n| `SHINKANSEN_NVM_FG`     | `white` | Foreground color      |\n| `SHINKANSEN_NVM_PREFIX` | `\"⬡ \"`  | Prefix of the segment |\n\n### Java\n\n| Variable                 | Default  | Meaning               |\n| ------------------------ | -------- | --------------------- |\n| `SHINKANSEN_JAVA_BG`     | `black`  | Background color      |\n| `SHINKANSEN_JAVA_FG`     | `red`    | Foreground color      |\n| `SHINKANSEN_JAVA_PREFIX` | `\"☕️ \"` | Prefix of the segment |\n\n### Ruby RVM/Rbenv\n\n| Variable                 | Default   | Meaning               |\n| ------------------------ | --------- | --------------------- |\n| `SHINKANSEN_RUBY_BG`     | `magenta` | Background color      |\n| `SHINKANSEN_RUBY_FG`     | `white`   | Foreground color      |\n| `SHINKANSEN_RUBY_PREFIX` | `\"♦\"`     | Prefix of the segment |\n\n### Elixir\n\n| Variable                   | Default   | Meaning               |\n| -------------------------- | --------- | --------------------- |\n| `SHINKANSEN_ELIXIR_BG`     | `magenta` | Background color      |\n| `SHINKANSEN_ELIXIR_FG`     | `white`   | Foreground color      |\n| `SHINKANSEN_ELIXIR_PREFIX` | `\"💧\"`    | Prefix of the segment |\n\n### Go\n\n| Variable               | Default | Meaning               |\n| ---------------------- | ------- | --------------------- |\n| `SHINKANSEN_GO_BG`     | `green` | Background color      |\n| `SHINKANSEN_GO_FG`     | `white` | Foreground color      |\n| `SHINKANSEN_GO_PREFIX` | `🦦`    | Prefix of the segment |\n\n### Kubernetes Context\n\n| Variable                    | Default                | Meaning                                                                                             |\n| --------------------------- | ---------------------- | --------------------------------------------------------------------------------------------------- |\n| `SHINKANSEN_KCTX_BG`        | `yellow`               | Background color                                                                                    |\n| `SHINKANSEN_KCTX_FG`        | `white`                | Foreground color                                                                                    |\n| `SHINKANSEN_KCTX_PREFIX`    | `⎈`                    | [Kubernetes](https://symbl.cc/de/2388/) prefix of the segment                              |\n| `SHINKANSEN_KCTX_KUBECTL`   | `true`                 | If `false` disable `kubectl` usage                                                                  |\n| `SHINKANSEN_KCTX_NAMESPACE` | `true`                 | If `false` will not show the default namespace. Namespace is only visible if `kubectl` is installed |\n| `SHINKANSEN_KCTX_KCONFIG`   | `${HOME}/.kube/config` | Location of kube config file (e.g. /Users/Hugo/.kube/config)                                        |\n\nThe prompt will first check if `SHINKANSEN_KCTX_KUBECTL=true` and `kubectl` is installed than it will use `kubectl config view --minify` to determine the context and default namespace in use.\nIf `SHINKANSEN_KCTX_KUBECTL=false` or `kubectl` is not installed, `SHINKANSEN_KCTX_KCONFIG` will be parsed to get the current context.\n\nThe usage of `kubectl` allow the prompt to get the default namespace even if you are using multiple kube config files (e.g. KUBECONFIG=~/.kube/config:path-to-config1:path-to-config2)\n\n### AWS Profile\n\nDisplays which AWS (Amazon Web Services) credentials profile is currently set.\nThis environment var is used by aws-cli and other tools to use the right access keys and other parameters.\n\n| Variable                | Default  | Meaning               |\n| ----------------------- | -------- | --------------------- |\n| `SHINKANSEN_AWS_BG`     | `yellow` | Background color      |\n| `SHINKANSEN_AWS_FG`     | `black`  | Foreground color      |\n| `SHINKANSEN_AWS_PREFIX` | `☁️`     | Prefix of the segment |\n\n### Perl\n\n| Variable                 | Default  | Meaning               |\n| ------------------------ | -------- | --------------------- |\n| `SHINKANSEN_PERL_BG`     | `yellow` | Background color      |\n| `SHINKANSEN_PERL_FG`     | `black`  | Foreground color      |\n| `SHINKANSEN_PERL_PREFIX` | `🐪`     | Prefix of the segment |\n\n### Dir\n\n| Variable                      | Default | Meaning                                                                                   |\n| ----------------------------- | ------- | ----------------------------------------------------------------------------------------- |\n| `SHINKANSEN_DIR_BG`           | `blue`  | Background color                                                                          |\n| `SHINKANSEN_DIR_FG`           | `white` | Foreground color                                                                          |\n| `SHINKANSEN_DIR_CONTEXT_SHOW` | `false` | Show user and machine in an SCP formatted style                                           |\n| `SHINKANSEN_DIR_EXTENDED`     | `1`     | Extended path (0=short path, 1=medium path, 2=complete path, everything else=medium path) |\n\n### Git\n\n| Variable                                 | Default                  | Meaning                                                                         |\n| ---------------------------------------- | ------------------------ | ------------------------------------------------------------------------------- |\n| `SHINKANSEN_GIT_COLORIZE_DIRTY`          | `false`                  | Set `SHINKANSEN_GIT_BG` to `SHINKANSEN_GIT_COLORIZE_DIRTY_COLOR` in dirty state |\n| `SHINKANSEN_GIT_COLORIZE_DIRTY_BG_COLOR` | `yellow`                 | `SHINKANSEN_GIT_BG` in dirty state                                              |\n| `SHINKANSEN_GIT_COLORIZE_DIRTY_FG_COLOR` | `black`                  | `SHINKANSEN_GIT_FG` in dirty state                                              |\n| `SHINKANSEN_GIT_BG`                      | `white`                  | Background color                                                                |\n| `SHINKANSEN_GIT_FG`                      | `black`                  | Foreground color                                                                |\n| `SHINKANSEN_GIT_PROMPT_CMD`              | `git_prompt_info`        | Function to display details about your git segment.                             |\n| `SHINKANSEN_GIT_EXTENDED`                | `true`                   |\n| `SHINKANSEN_GIT_PREFIX`                  | `\"\"`                    | Prefix                                                                          |\n| `SHINKANSEN_GIT_SUFFIX`                  | `\"\"`                     | Suffix                                                                          |\n| `SHINKANSEN_GIT_DIRTY`                   | `\"✘\"`                    | Icon for dirty state                                                            |\n| `SHINKANSEN_GIT_CLEAN`                   | `\"✔\"`                    | Icon for clean state                                                            |\n| `SHINKANSEN_GIT_ADDED`                   | `\"%F{green}✚%F{black}\"`  | Icon for added files on stage                                                   |\n| `SHINKANSEN_GIT_MODIFIED`                | `\"%F{blue}✹%F{black}\"`   | Icon for modified files                                                         |\n| `SHINKANSEN_GIT_DELETED`                 | `\"%F{red}✖%F{black}\"`    | Icon for delete files on stage                                                  |\n| `SHINKANSEN_GIT_UNTRACKED`               | `\"%F{yellow}✭%F{black}\"` | Icon for untracked files                                                        |\n| `SHINKANSEN_GIT_RENAMED`                 | `\"➜\"`                    | Icon for renamed                                                                |\n| `SHINKANSEN_GIT_UNMERGED`                | `\"═\"`                    | Icon for unmerged state                                                         |\n| `SHINKANSEN_GIT_AHEAD`                   | `\" ⬆\"`                   | Icon for ahead state from remote                                                |\n| `SHINKANSEN_GIT_BEHIND`                  | `\" ⬇\"`                   | Icon for behind state from remote                                               |\n| `SHINKANSEN_GIT_DIVERGED`                | `\" ⬍\"`                   | Icon for diverged state from remote                                             |\n\nThe git prompt can be disabled for a specific repository by setting a git config flag: `git config oh-my-zsh.hide-status 1`. This is useful to avoid performance issues for particularly huge repositories.\n\n### Screen\n\n| Variable                   | Default | Meaning               |\n| -------------------------- | ------- | --------------------- |\n| `SHINKANSEN_SCREEN_BG`     | `white` | Background color      |\n| `SHINKANSEN_SCREEN_FG`     | `black` | Foreground color      |\n| `SHINKANSEN_SCREEN_PREFIX` | `⬗`     | Prefix of the segment |\n\n### Mercurial/HG\n\nNothing to configure.\n\n### Command execution time\n\n| Variable                       | Default  | Meaning                                                                                                                         |\n| ------------------------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------- |\n| `SHINKANSEN_EXEC_TIME_ELAPSED` | 5        | Minimum elapsed time of command execution. If the execution time of a command is smaller than this, the segment will be hidden. |\n| `SHINKANSEN_EXEC_TIME_BG`      | `yellow` | Background color                                                                                                                |\n| `SHINKANSEN_EXEC_TIME_FG`      | `black`  | Foreground color                                                                                                                |\n\n## Contributors \u0026 Credits\n\nThis project was originally a fork from\n[Bullettrain](https://github.com/MRZ07/bullet-train.zsh)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrz07%2Fshinkansen.zsh-theme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrz07%2Fshinkansen.zsh-theme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrz07%2Fshinkansen.zsh-theme/lists"}