{"id":21844512,"url":"https://github.com/pudding0503/my-git-bash","last_synced_at":"2026-04-13T10:31:54.365Z","repository":{"id":51250750,"uuid":"520324491","full_name":"pudding0503/my-git-bash","owner":"pudding0503","description":"My git bash style profile","archived":false,"fork":false,"pushed_at":"2022-08-28T01:25:50.000Z","size":7231,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T16:28:18.193Z","etag":null,"topics":["bash","font","meslo","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/pudding0503.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":"2022-08-02T02:24:56.000Z","updated_at":"2022-08-02T02:51:09.000Z","dependencies_parsed_at":"2022-09-10T02:23:40.467Z","dependency_job_id":null,"html_url":"https://github.com/pudding0503/my-git-bash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pudding0503/my-git-bash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pudding0503%2Fmy-git-bash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pudding0503%2Fmy-git-bash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pudding0503%2Fmy-git-bash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pudding0503%2Fmy-git-bash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pudding0503","download_url":"https://codeload.github.com/pudding0503/my-git-bash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pudding0503%2Fmy-git-bash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31748976,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"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","font","meslo","theme"],"created_at":"2024-11-27T22:23:13.862Z","updated_at":"2026-04-13T10:31:54.349Z","avatar_url":"https://github.com/pudding0503.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n \u003cimg width=\"100px\" src=\"assets/terminal.svg\" align=\"center\" alt=\"Logo\" /\u003e\n \u003ch2 align=\"center\"\u003eBash Style\u003c/h2\u003e\n \u003cp align=\"center\"\u003e我的个人 Git Bash 配置文件\u003c/p\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://git-scm.com/\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/Git%20Bash-%3E%3D2.20.0-blue.svg\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/pudding0503/my-git-bash/issues\"\u003e\n  \t\u003cimg alt=\"Issues\" src=\"https://img.shields.io/github/issues/pudding0503/my-git-bash.svg?color=F48D73\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/pudding0503/my-git-bash/blob/main/LICENSE\"\u003e\n  \t\u003cimg alt=\"Github\" src=\"https://img.shields.io/github/license/pudding0503/my-git-bash.svg?logo=github\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\n## 前提\n\n我的 Git 安装目录在 `D:\\dev\\git`\n\n![screenshot](assets/screenshot-1.png)\n\n## 安装 Bash 主题\n\n以下所有命令都需要在以**管理员身份**运行的 Git Bash 中执行。\n\n### 1. Clone\n\n先 clone 此 repo，然后 cd 到目录中再执行下面的所有操作。\n\n```bash\n$ git clone https://github.com/pudding0503/my-git-bash.git\n$ cd my-git-bash\n```\n\n### 2. 安装字体\n\n本配置默认使用 DejaVu Sans Mono for Powerline 字体。\n\n你也可以使用 [Oh My Posh](https://ohmyposh.dev/docs/installation/fonts) 推荐的 Nerd 字体。 Nerd 字体是流行的字体，经过修补以包含图标。 推荐 **Meslo LGM NF**，但任何 Nerd 字体都应该与标准主题兼容。\n\n执行命令后，将全部字体文件拖放进去即可完成安装。\n\n```bash\n$ start c://Windows//Fonts \u0026\u0026 start %cd%/fonts\n```\n\n\n### 3. 安装主题\n\n```bash\n$ cp .minttyrc ~ \u0026\u0026 cp git-prompt.sh /etc/profile.d\n```\n\n\n安装主题后同时会开启复制粘贴快捷键：Ctrl + Shift + C/V，需要 Git Bash 版本大于 2.20.0 才可以使用。\n\n### 4. 环境变量\n\n```bash\n$ cp bash.bashrc /etc\n```\n\n其中，含有 Clash for Windows 代理 HTTP 的配置：\n\n```bash\n# Clash for Windows HTTP\nexport http_proxy=http://127.0.0.1:7890;export https_proxy=http://127.0.0.1:7890\n```\n\n### 5. 个人设置\n\n#### 5.1 安装我的 alias\n\n```bash\n$ cp .bash_profile ~\n```\n\n####  5.2 安装我的 git 配置\n\n```bash\n$ cp .gitconfig ~\n```\n\n注意，这里的 [user] 信息是与 Github Desktop 登陆的账户一致（多 Github 用户请注意）：\n\n```\n[user]\n\temail = bitcookies@nousbuild.com\n\tname = bitcookies\n```\n\n### 6. 在 VSCode 中配置 Git Bash\n\n在 VSCode 中使用 `Git Bash` 只需要在 `Settings.json` 中添加 `bash.exe` 的文件路径。（注意，但是这样会默认取消使用 CMD or PowerShell）\n\n```json\n{\n  \"terminal.integrated.shell.windows\": \"D:\\\\dev\\\\git\\\\bin\\\\bash.exe\"\n}\n```\n\n![screenshot](assets/screenshot-2.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpudding0503%2Fmy-git-bash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpudding0503%2Fmy-git-bash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpudding0503%2Fmy-git-bash/lists"}