{"id":13539651,"url":"https://github.com/metaory/zsh-roundy-prompt","last_synced_at":"2025-04-02T06:31:13.015Z","repository":{"id":193711081,"uuid":"689357355","full_name":"metaory/zsh-roundy-prompt","owner":"metaory","description":"fast • minimal • roundy prompt for ZSH in 140 LoC","archived":false,"fork":true,"pushed_at":"2025-03-17T06:39:14.000Z","size":3752,"stargazers_count":32,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T07:37:59.275Z","etag":null,"topics":["theme","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":"nullxception/roundy","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/metaory.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-09-09T14:53:16.000Z","updated_at":"2025-03-17T06:39:17.000Z","dependencies_parsed_at":"2023-09-28T01:16:55.092Z","dependency_job_id":null,"html_url":"https://github.com/metaory/zsh-roundy-prompt","commit_stats":null,"previous_names":["metaory/zsh-roundy-prompt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fzsh-roundy-prompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fzsh-roundy-prompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fzsh-roundy-prompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fzsh-roundy-prompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metaory","download_url":"https://codeload.github.com/metaory/zsh-roundy-prompt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246767842,"owners_count":20830566,"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":["theme","zsh-prompt","zsh-theme"],"created_at":"2024-08-01T09:01:29.987Z","updated_at":"2025-04-02T06:31:13.009Z","avatar_url":"https://github.com/metaory.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"\u003cdiv align=center\u003e\n  \u003ch1\u003e\n    ᖇ𐑴ꭎ𐐻𖩎ʎ\n    \u003cimg\n      valign=\"middle\"\n      alt=\"logo-of-roundy-theme\"\n      src=\".github/assets/roundy.png\"\n      height=\"80\" /\u003e\n  \u003c/h1\u003e\n  fast, cute, and of course, \u003cem\u003eroundy\u003c/em\u003e prompt theme for zsh\n\u003c/div\u003e\n\n![preview-of-roundy-theme](.github/assets/preview.png)\n\n# Features\n\n- Fast and minimal\n- Git branch integration\n- Command execution time\n- Exit status indicator\n- Terminal title support\n- Plugin manager support\n- Configurable colors and icons\n- Path shortening modes\n\n# Install\n\n```sh\n# zinit\nzinit light metaory/zsh-roundy-prompt\n\n# antigen\nantigen bundle metaory/zsh-roundy-prompt\n\n# zplug\nzplug metaory/zsh-roundy-prompt\n\n# vanilla\ngit clone https://github.com/metaory/zsh-roundy-prompt ~/.zsh/roundy\necho 'source ~/.zsh/roundy/roundy.zsh' \u003e\u003e ~/.zshrc\n```\n\n# Required\n\n- Unicode support: `echo -e '\\ue0b6\\ue0b4'` should show rounded separators\n- Zsh 5.0 or newer\n\n# Config\n\nTheme colors and options can be configured in two ways:\n\n1. Before sourcing (for plugin managers):\n```zsh\n# Set theme colors before loading\ntypeset -gA RT=(\n  bg_ok 4    fg_ok 6    icon_ok •\n  bg_err 1   fg_err 0   icon_err ×\n  bg_dir 7   fg_dir 13  icon_time ⟳\n  bg_usr 4   fg_usr 13\n  bg_git 13  fg_git 7\n  bg_time 3  fg_time 7\n)\n\n# Then load the theme\nzinit light metaory/zsh-roundy-prompt\n```\n\n2. After sourcing (for manual installation):\n```zsh\n# First source the theme\nsource ~/.zsh/roundy/roundy.zsh\n\n# Then override colors and options\ntypeset -gA RT=(...)\nR_MODE=full\nR_CODE=1\n```\n\nBoth approaches work, but plugin managers might handle the timing differently.\nTest which works better for your setup.\n\n# Theme Colors\n\n```zsh\n# Theme colors (0-15 basic, 0-255 extended, black/red/..., #ff0000)\ntypeset -gA RT=(\n  bg_ok 4    fg_ok 6    icon_ok •\n  bg_err 1   fg_err 0   icon_err ×\n  bg_dir 7   fg_dir 13  icon_time ⟳\n  bg_usr 4   fg_usr 13\n  bg_git 13  fg_git 7\n  bg_time 3  fg_time 7\n)\n\n# Hex colors example (hexocd theme)\ntypeset -gA RT=(\n  bg_ok   '#2211AA'  fg_ok   '#11BB99'  icon_ok   •\n  bg_err  '#BB1122'  fg_err  '#110011'  icon_err  ×\n  bg_dir  '#440099'  fg_dir  '#FFCCFF'  icon_time ⟳\n  bg_usr  '#7766DD'  fg_usr  '#44DDEE'\n  bg_git  '#CC44BB'  fg_git  '#110022'\n  bg_time '#FF9922'  fg_time '#220022'\n)\n\n# Options\n\n# Default options and their effects\n: ${R_MODE:=dir-only}  # Path display mode:\n                       #   full     - show full path (/home/user/projects)\n                       #   short    - show shortened path (/h/u/p)\n                       #   dir-only - show only current directory (projects)\n\n: ${R_CODE:=0}         # Show exit code in right prompt:\n                       #   0 - hide exit code\n                       #   1 - show non-zero exit codes\n\n: ${R_MIN:=4}          # Minimum seconds to show execution time:\n                       #   0 - disable time display\n                       #   n - show time for commands longer than n seconds\n\n: ${R_USR:=%n}         # Username format in prompt:\n                       #   %n - username\n                       #   %m - hostname\n                       #   %n@%m - username@hostname\n```\n\nYou can override these in your `.zshrc` after sourcing the theme:\n\n```zsh\nsource ~/.zsh/roundy/roundy.zsh\nR_MODE=full          # show full path\nR_CODE=1             # show exit codes\nR_MIN=2              # show time after 2s\nR_USR='%n@%m'        # show user@host\n```\n\n# Path Modes\n\nThe prompt supports three path display modes:\n\n```zsh\nR_MODE=full     # /home/user/projects/roundy\nR_MODE=short    # /h/u/p/roundy\nR_MODE=dir-only # roundy\n```\n\n# Format\n\nPrompt supports [zsh prompt expansion](https://zsh.sourceforge.io/Doc/Release/Prompt-Expansion.html):\n\n```zsh\n# Examples\nR_USR=\"%n\"         # username\nR_USR=\"%m\"         # hostname\nR_USR=\"%n@%m\"      # username@hostname\nR_USR=\"%B%n%b\"     # bold username\nR_USR=\"%F{1}%n%f\"  # red username\n```\n\n# Time Format\n\nThe time segment shows command execution duration when it exceeds `R_MIN` seconds:\n\n```zsh\n# Examples with R_MIN=4\n1d 2h 3m 4s        # 93784s\n2h 3m 4s           # 7384s\n3m 4s              # 184s\n4s                 # 4s\n```\n\nThe time segment is hidden for:\n- Commands that run less than `R_MIN` seconds\n- When `R_MIN` is set to 0\n\n# Terminal Title\n\nThe prompt automatically sets terminal title to:\n- Current command while executing\n- Current directory when idle\n\n# Acknowledgment\n\nInspired by [Pure](https://github.com/sindresorhus/pure), [Spaceship](https://github.com/spaceship-prompt/spaceship-prompt), and [Powerline](https://github.com/powerline/powerline).\n\n# License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetaory%2Fzsh-roundy-prompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetaory%2Fzsh-roundy-prompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetaory%2Fzsh-roundy-prompt/lists"}