{"id":24328454,"url":"https://github.com/kotfu/dye-your-shell","last_synced_at":"2026-02-11T18:10:39.888Z","repository":{"id":271628975,"uuid":"914060248","full_name":"kotfu/dye-your-shell","owner":"kotfu","description":"activate color output in shell commands using themes and patterns","archived":false,"fork":false,"pushed_at":"2025-01-20T19:44:32.000Z","size":462,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-02T16:36:31.705Z","etag":null,"topics":["bash","color-theme","colors","command-line","shell"],"latest_commit_sha":null,"homepage":"","language":"Python","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/kotfu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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}},"created_at":"2025-01-08T21:46:16.000Z","updated_at":"2025-01-18T05:03:43.000Z","dependencies_parsed_at":"2025-08-25T10:26:35.855Z","dependency_job_id":"77247d4f-7907-4bd3-ac26-c1ab32cfe6ec","html_url":"https://github.com/kotfu/dye-your-shell","commit_stats":null,"previous_names":["kotfu/dye-your-shell"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/kotfu/dye-your-shell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kotfu%2Fdye-your-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kotfu%2Fdye-your-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kotfu%2Fdye-your-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kotfu%2Fdye-your-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kotfu","download_url":"https://codeload.github.com/kotfu/dye-your-shell/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kotfu%2Fdye-your-shell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29340535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T16:14:43.024Z","status":"ssl_error","status_checked_at":"2026-02-11T16:14:15.258Z","response_time":97,"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":["bash","color-theme","colors","command-line","shell"],"created_at":"2025-01-17T23:29:23.960Z","updated_at":"2026-02-11T18:10:39.874Z","avatar_url":"https://github.com/kotfu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dye-your-shell\n\nactivate color output in shell commands using themes and patterns\n\nThere are many modern *nix and *bsd command line tools which can output\nusing a full 16.7 million color palette. For example:\n\n* [fzf](https://github.com/junegunn/fzf)\n* [dust](https://github.com/bootandy/dust)\n* [bat](https://github.com/sharkdp/bat)\n* [gum](https://github.com/charmbracelet/gum)\n* [eza](https://eza.rocks/)\n\nEven the GNU Project's venerable `ls` can show various types of files in\ndifferent colors.\n\nUnfortunately, these tools all use slightly different color configuration mechanisms.\nWith enough fiddling, you can get your shell init scripts to make all these tools\nuse a similar color scheme, but if you want to change it, you've got a lot of work\nahead.\n\n`dye-your-shell` installs a command line program named `dye` to do its work.\n\n`dye` reads a configuration file containing a set of colors, and instructions on how to\napply those colors to as many command line tools as can support it. This configuration\nfile is called a pattern. Each command line tool (ie bat, fzf, eza) has it's own set of\ninstructions in the pattern which are powered by an agent, which is included in `dye`.\nThis agent knows how to easily apply the colors to that command line tool, for example\nby setting an environment variable, or executing certain shell commands, or copying\na template to a config file.\n\nInstead of tweaking your collection of bash scripts to create or change all these\ncolors, you now just tell `dye` to apply your pattern.\n```\nexport DYE_PATTERN_FILE=~/.dye/dracula.toml\nsource \u003c(dye apply)\n```\n\n\n## Pattern Files\n\nHere's an example of a pattern file:\n```\n#\n# sample definition for a dracula theme\n\nversion = \"1.0.0\"\nname = \"dracula\"\n\n[styles]\n# these are from https://draculatheme.com/contribute\nbackground =  \"#282a36\"\nforeground =  \"#f8f8f2\"\n\n# styles for text and the highlighted line\n# these are the only things fzf supports background colors for\ntext = \"#f8f8f2 on default\"\ncurrent_line =  \"#f8f8f2 on #44475a\"\n\n# other colors from the dracula palette\ncomment =  \"#6272a4\"\ncyan =  \"#8be9fd\"\ngreen =  \"#50fa7b\"\norange =  \"#ffb86c\"\npink =  \"#ff79c6\"\npurple =  \"#bd93f9\"\nred =  \"#ff5555\"\nyellow =  \"#f1fa8c\"\n\n[scope.iterm]\nagent = \"iterm\"\nstyle.foreground = \"foreground\"\nstyle.background = \"background\"\n\n[scope.ls_colors]\nagent = \"environment_variables\"\nexport.LS_COLORS = \"$(vivid generate dracula)\"\n\n[scope.bat]\nagent = \"environment_variables\"\nexport.BAT_THEME = \"Dracula\"\n\n[scope.fzf]\nagent = \"fzf\"\nenvironment_variable = \"FZF_DEFAULT_OPTS\"\ncolorbase = \"dark\"\n\n# command line options\nopt.--pointer = \"•\"\nopt.--prompt = \"\u003e \"\nopt.--bind = \"ctrl-k:kill-line,ctrl-j:ignore,ctrl-u:unix-line-discard\"\n\n# these styles are special because they set both foreground and background\nstyle.text = \"text\"\nstyle.current_line = \"current_line\"\n\n# no special parsing for these styles, just use the fzf color name\n# highlighted substrings\nstyle.hl = \"pink\"\n# highlighted substrings current line\nstyle.\"hl+\" = \"pink\"\nstyle.label = \"green\"\nstyle.border = \"orange\"\nstyle.prompt = \"green\"\nstyle.pointer = \"cyan\"\nstyle.query = \"pink\"\n```\n\n## Installation\n\nYou'll need python version 3.9 or higher. Install with [pipx](https://pipx.pypa.io/stable/):\n```\n$ pipx install dye-your-shell\n```\n\nYou need a *nix-ish bash shell environment. Probably works in Windows Subsystem\nfor Linux, but isn't tested there.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkotfu%2Fdye-your-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkotfu%2Fdye-your-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkotfu%2Fdye-your-shell/lists"}