{"id":13608041,"url":"https://github.com/Cabbagec/termux-ohmyzsh","last_synced_at":"2025-04-12T14:32:02.762Z","repository":{"id":15538242,"uuid":"77782522","full_name":"Cabbagec/termux-ohmyzsh","owner":"Cabbagec","description":"Colorize your termux! Oh-my-zsh included!","archived":false,"fork":true,"pushed_at":"2022-10-20T05:40:09.000Z","size":4989,"stargazers_count":831,"open_issues_count":3,"forks_count":217,"subscribers_count":50,"default_branch":"master","last_synced_at":"2025-04-04T12:58:57.817Z","etag":null,"topics":["colorization","oh-my-zsh","termux"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"4679/oh-my-termux","license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cabbagec.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}},"created_at":"2017-01-01T14:40:38.000Z","updated_at":"2025-03-27T13:41:27.000Z","dependencies_parsed_at":"2023-01-11T20:23:34.540Z","dependency_job_id":null,"html_url":"https://github.com/Cabbagec/termux-ohmyzsh","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/Cabbagec%2Ftermux-ohmyzsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cabbagec%2Ftermux-ohmyzsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cabbagec%2Ftermux-ohmyzsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cabbagec%2Ftermux-ohmyzsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cabbagec","download_url":"https://codeload.github.com/Cabbagec/termux-ohmyzsh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248581260,"owners_count":21128137,"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":["colorization","oh-my-zsh","termux"],"created_at":"2024-08-01T19:01:23.806Z","updated_at":"2025-04-12T14:32:00.221Z","avatar_url":"https://github.com/Cabbagec.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# Termux-ohmyzsh\n\nA fork from [oh-my-termux](https://github.com/4679/oh-my-termux) 。让你的 Termux 变的五颜六色～\n\n为 Termux 添加 [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh) 终端环境以及 [zsh-syntax-highlighting](https://github.com/zsh-users/zsh-syntax-highlighting)，设置色彩样式（大部分来自 [Gogh](https://github.com/Mayccoll/Gogh) ）和 Powerline 字体（来自 [powerline/fonts](https://github.com/powerline/fonts)）。oh-my-zsh 主题默认为 agnoster，颜色样式默认为 Tango，字体默认为 Ubuntu。\n\n**此 Repo 使用 Termux 官方源，在中国大陆可能需要将 Termux 应用添加到代理列表。**\n## 使用：\n```shell\nsh -c \"$(curl -fsSL https://github.com/Cabbagec/termux-ohmyzsh/raw/master/install.sh)\"\n```\n\n## 设置色彩样式：\n运行`chcolor`更换色彩样式，或者：\n```shell\n~/.termux/colors.sh\n```\n\n## 设置字体\n运行`chfont`更换字体，或者：\n```shell\n~/.termux/fonts.sh\n```\n\n## 需要软件包：\n - curl\n\n## 恢复到安装前的环境\n1. 在 home 目录下可找到按日期命名的 zshrc 备份文件，形如 `.zshrc.bak.2018.1.1-00:00:00`，将其文件名恢复为 `.zshrc`。若不存在备份文件，删除当前的 `.zshrc`。\n\n2. 在 home 目录下可找到按日期命名的 termux 备份配置目录，形如 `.termux.bak.2018.1.1-00:00:00`，将其文件名恢复为`.termux`。若不存在备份，删除当前的 `.termux` 目录。\n\n3. 重启 termux\n\n## 使用提示（参照Termux Wiki）\n要调整字体大小，双指缩放即可。另外，Termux 使用音量键模拟一些 shell 功能：\n* `音量减+C`：即 `Ctrl+C`，SIGINT 中断 shell 当前进程\n* `音量减+D`：即 `Ctrl+D`，EOF 登出当前 shell\n* `音量减+E`：即 `Ctrl+E`，移动 shell 光标至行尾\n* `音量减+L`：即 `Ctrl+L`，清除屏幕内容\n* `音量减+Z`：即 `Ctrl+Z`，SIGTSTP 暂停 shell 中当前进程\n\n其他一些按键可以使用 `音量加+Q` 调出快捷小键盘，也可使用下列组合：\n* `音量加+W`，`音量加+A`，`音量加+S`，`音量加+D`：移动光标上下左右\n* `音量加+E`：ESC\n* `音量加+T`：TAB\n* `音量加+数字`：F1-F9，F10 使用数字 0\n* `音量加+L`：管道符 “|”\n* `音量加+H`：波浪符 “~\"\n* `音量加+U`：下划线 “_”\n* `音量加+V`：控制音量\n\n如需更好的打字输入支持，在 `音量加+Q` 的小键盘上向左滑动即可\n\n## 示例\nTango 颜色主题 + oh-my-zsh agnoster 主题 + Ubuntu 字体：\n\n![](./termux-ohmyzsh.png)\n- - -\n\n# Termux-ohmyzsh\n\nA fork from [oh-my-termux](https://github.com/4679/oh-my-termux). It makes the app more colorful.\n\nTermux-ohmyzsh implements oh-my-zsh and [zsh-syntax-highlighting](https://github.com/zsh-users/zsh-syntax-highlighting) on your Termux app, as well as some color schemes (most are from [Gogh](https://github.com/Mayccoll/Gogh)), and some Powerline fonts (ported from [powerline/fonts](https://github.com/powerline/fonts)). Default set is agnoster for oh-my-zsh, Tango for color scheme, and Ubuntu font.\n\n\n\n**This repo requires Termux official repo. In mainland China, you may need to add Termux app to your proxy list in order to gain access to Termux official repository.**\n\n## Install:\n```shell\nsh -c \"$(curl -fsSL https://github.com/Cabbagec/termux-ohmyzsh/raw/master/install.sh)\"\n```\n\n## Change color scheme:\nRun `chcolor` to change color scheme, or run:\n```shell\n~/.termux/colors.sh\n```\n## Change font:\nRun `chfont` to change font, or run:\n```shell\n~/.termux/fonts.sh\n```\n\n## Requirements:\n - curl\n\n## Revert environment\n1. Under the home directory, you can find some zshrc backup files named with date, like `.zshrc.bak.2018.1.1-00:00:00`. Rename the backup file back to `.zshrc`. If there doesn't exist any backups, remove the current `.zshrc`.\n\n2. You can also find some termux configuration backup directory, named with date, like `.termux.bak.2018.1.1-00:00:00`. Rename the backup directory back to `.termux`. If there doesn't exist any backups, remove the current `.termux`.\n\n3. Restart termux\n\n## Tips (See Termux Wiki)\nUse two-finger pinch to adjust font size. Termux use combination with volume keys to emulate some functions in shell:\n* `VolDown+C`: `Ctrl+C`, send SIGINT to interrupt current process\n* `VolDown+D`: `Ctrl+D`, EOF logout current session\n* `VolDown+E`: `Ctrl+E`, move cursor to end of line in shell\n* `VolDown+L`: `Ctrl+L`, clear terminal screen\n* `VolDown+Z`: `Ctrl+Z`, send SIGTSTP to suspend current process\n\nYou can `VolUp+Q` to bring up an extra key bar, but you can also use combinations below:\n* `VolUp+W/A/S/D`: Move cursor up/left/down/right\n* `VolUp+E`: ESC\n* `VolUp+T`: TAB\n* `VolUp+Digits`: F1-F9, F10 is 0\n* `VolUp+L`: pipe character \"|\"\n* `VolUp+H`: tilt character \"~\"\n* `VolUp+U`: underscore \"_\"\n* `VolUp+V`: Volume control\n\nFor better text input experience, swipe left on the `VolUp+Q` key bar.\n\n\n## Example\nTango color scheme + agnoster oh-my-zsh theme + Ubuntu font:\n\n![](./termux-ohmyzsh.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCabbagec%2Ftermux-ohmyzsh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCabbagec%2Ftermux-ohmyzsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCabbagec%2Ftermux-ohmyzsh/lists"}