{"id":17808196,"url":"https://github.com/holmofy/oh-my-mac","last_synced_at":"2025-10-19T20:12:00.110Z","repository":{"id":121334532,"uuid":"220622072","full_name":"holmofy/oh-my-mac","owner":"holmofy","description":"My MacOS Configuration -- My dot files","archived":false,"fork":false,"pushed_at":"2024-12-01T06:17:23.000Z","size":11589,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T07:41:19.087Z","etag":null,"topics":["homebrew","mac","vim","zsh"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/holmofy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-11-09T09:48:36.000Z","updated_at":"2024-12-01T06:17:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"148858b1-bce4-492b-b1b5-ddef860daa56","html_url":"https://github.com/holmofy/oh-my-mac","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/holmofy/oh-my-mac","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holmofy%2Foh-my-mac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holmofy%2Foh-my-mac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holmofy%2Foh-my-mac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holmofy%2Foh-my-mac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/holmofy","download_url":"https://codeload.github.com/holmofy/oh-my-mac/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holmofy%2Foh-my-mac/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265075866,"owners_count":23707511,"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":["homebrew","mac","vim","zsh"],"created_at":"2024-10-27T15:09:04.720Z","updated_at":"2025-10-19T20:11:55.064Z","avatar_url":"https://github.com/holmofy.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Oh My Mac\n\n## 1. Three 🪜 to access the World Wide Web\n\nclient:\n\n* [shadowsocks](https://github.com/search?q=shadowsocks)\n* [v2ray](https://github.com/search?q=v2ray)\n* [trojan](https://github.com/search?q=trojan)\n\nserver:\n* 搬瓦工VPS推出的专用代理服务just my socks，支持支付宝: https://justmysocks.net/members/aff.php?aff=15941\n\n---\n\n## 2. Set git proxy for github\n\n```sh\n# 设置代理，\u003cport\u003e是代理软件的开放端口\ngit config --global https.proxy http://127.0.0.1:\u003cport\u003e\ngit config --global https.proxy https://127.0.0.1\u003cport\u003e\n\n# 重置\ngit config --global --unset http.proxy\ngit config --global --unset https.proxy\n```\n\n\u003e * Configure Git to use a proxy: https://gist.github.com/evantoli/f8c23a37eb3558ab8765\n\u003e * git 设置和取消代理: https://gist.github.com/laispace/666dd7b27e9116faece6\n\n---\n\n## 3. homebrew\n\nInstall homebrew\n\n```sh\n/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"\n```\n\n\u003e 没有梯子的话最好用国内的镜像源，否则会很慢，安装完后可以在`.zshrc`中配置`export HOMEBREW_NO_AUTO_UPDATE=3`关闭brew仓库的自动更新\n\n---\n\n## 4. zsh config\n\n![zsh](https://raw.githubusercontent.com/holmofy/oh-my-mac/master/.screen-shot/zsh-screen-shot.gif)\n\n### 4.1. Install on-my-zsh\n\n```sh\nsh -c \"$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)\"\n```\n\n### 4.2. Install oh-my-zsh themes\n\n**1) [PowerLine10k](https://github.com/romkatv/powerlevel10k)**\n\nInstall\n```sh\ngit clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k\n```\nRecommended font\n\nDownload these four ttf files:\n\n* [MesloLGS NF Regular.ttf](https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf)\n* [MesloLGS NF Bold.ttf](https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf)\n* [MesloLGS NF Italic.ttf](https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf)\n* [MesloLGS NF Bold Italic.ttf](https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf)\n\nSet `ZSH_THEME=\"powerlevel10k/powerlevel10k\"` in `~/.zshrc`.\n\n\u003e ref: https://github.com/romkatv/powerlevel10k#manual-font-installation\n\nActivate PowerLine10k theme\n\nSet `ZSH_THEME=\"powerlevel10k/powerlevel10k\"` in `~/.zshrc`\n\n**2) [spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)**\n\nInstall\n```sh\ngit clone https://github.com/denysdovhan/spaceship-prompt.git \"$ZSH_CUSTOM/themes/spaceship-prompt\" --depth=1\nln -s \"$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme\" \"$ZSH_CUSTOM/themes/spaceship.zsh-theme\" \n```\nSet `ZSH_THEME=\"spaceship\"` in your `~/.zshrc`.\n\n### 4.3. Install on-my-zsh plugin\n```sh\nbrew install pygments\nbrew tap homebrew/command-not-found\ngit clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting\ngit clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions\ngit clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search\ngit clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions\ngit clone https://github.com/MichaelAquilina/zsh-you-should-use.git $ZSH_CUSTOM/plugins/you-should-use\n```\n\n### 4.4. Activate plugins\n\n```sh\nplugins=( [plugins...] history-substring-search)\n```\n\neg:\n```sh\nplugins=(\n    # alias\n    common-aliases              # common alias: https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/common-aliases\n    git                         # git alias: https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git\n    git-flow                    # git-flow alias: https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git-flow\n    git-lfs                     # git-lfs alias: https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/git-lfs\n    brew                        # homebrew alias: https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/brew\n    nmap                        # nmap alias: https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/nmap\n    tmux                        # tmux alias: https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/tmux                                                       \n    dash                        # dash alias: https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/dash\n    osx                         # osx utility alias: https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/osx\n    # alias utility\n    alias-finder                # find alias: https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/alias-finder\n    you-should-use              # should use alias: https://github.com/MichaelAquilina/zsh-you-should-use#check-your-alias-usage\n    # autocomplete\n    zsh-completions             # Additional completion definitions for Zsh: https://github.com/zsh-users/zsh-completions\n    adb                         # adb autocomplete: https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/adb\n    docker                      # docker autocomplete: https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/docker\n    docker-compose              # docker-compose autocomplete: https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/docker-compose\n    git-extras                  # git-extras autocomplete: https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/git-extras\n    httpie                      # httpie autocomplete: https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/httpie\n    pip                         # pip autocomplete: https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/pip\n    compleat                    # Generate command-line completions using a simple DSL.\n    # other feature\n    command-not-found           # provide suggested packages: https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/command-not-found\n    colored-man-pages           # adds colors to man pages: https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/colored-man-pages\n    zsh-syntax-highlighting     # syntax highlighting: https://github.com/zsh-users/zsh-syntax-highlighting\n    zsh-autosuggestions         # fish-like autosuggestions: https://github.com/zsh-users/zsh-autosuggestions\n    history-substring-search    # fish-lisk history search: https://github.com/zsh-users/zsh-history-substring-search\n    themes                      # change ZSH theme on the go: https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/themes\n)\n```\n\n\u003e * zsh build-in completion: https://github.com/zsh-users/zsh/blob/master/Completion/README\n\u003e * zsh custom completion: https://github.com/zsh-users/zsh-completions/blob/master/zsh-completions-howto.org\n\n### 4.5. Enable .zshrc\n\n```sh\nsource .zshrc\n```\n\n---\n\n## 5. Vim Configuration\n\n![oh-my-vim](https://raw.githubusercontent.com/holmofy/my-home-config/master/.screen-shot/vim-screen-shot.png)\n\n### 5.1. Download .vimrc\n\n```sh\ncurl https://raw.githubusercontent.com/holmofy/my-home-config/master/.vimrc \u003e ~/.vimrc\n```\n\n### 5.2. Set up vim-plug:\n\nrefer to [vim-plug](https://github.com/junegunn/vim-plug#installation)\n\n### 5.3. Install Plugins:\n\n```sh\nvim +PlugInstall +qall\n```\n\n\u003e 更牛逼的vim配置：https://github.com/SpaceVim/SpaceVim\n\u003e 在VSCode中使用Vim：https://github.com/daipeihust/im-select\n\u003e 在Idea中使用Vim：https://github.com/rieonke/idea-auto-switch-im\n\n---\n\n~~## 6. tmux configuration~~ Using [zellij](https://github.com/zellij-org/zellij) instead of tmux\n\nAnother similar product is [byobu](https://github.com/dustinkirkland/byobu), which is based on tmux. \n\n[screen](https://savannah.gnu.org/git/?group=screen)、[i3](https://github.com/i3/i3)、[wezterm](https://github.com/wez/wezterm)。\n\n[search by terminal multiplexer](https://github.com/search?q=terminal%20multiplexer)\n\n![oh-my-tmux](https://raw.githubusercontent.com/holmofy/oh-my-mac/master/.screen-shot/tmux-screen-shot.png)\n\n~~### 6.1. Install tmux~~\n\n```sh\nbrew install tmux\n```\n\n~~### 6.2. Install Tmux Plugin Manager(tpm)~~\n\n```sh\ngit clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm\n```\n\n~~### 6.3. Add Configuration~~\n\n```sh\ncurl https://raw.githubusercontent.com/holmofy/oh-my-mac/master/.tmux.conf \u003e ~/.tmux.conf\n```\n\n~~### 6.4. Reload tmux configuration~~\n\n```sh\ntmux source ~/.tmux.conf\n```\n\n~~### 6.5. Config oh-my-zsh tmux plugin~~\n\nrefs:  https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/tmux\n\n```sh\nZSH_TMUX_AUTOSTART=true\nZSH_TMUX_AUTOQUIT=false\nZSH_TMUX_UNICODE=true\n```\n\n\u003e Refs:\n\u003e * Tmux Manual: http://man7.org/linux/man-pages/man1/tmux.1.html\n\u003e * Xterm_256color: https://upload.wikimedia.org/wikipedia/commons/1/15/Xterm_256color_chart.svg\n\u003e * Vim Pane: http://www.deanbodenham.com/learn/tmux-pane-colours.html\n\n## \n\n---\n\n## 7. Brew Formulae App\n\n通过homebrew安装常用的命令行工具\n\n```sh\nbrew install fzf        # 模糊搜索工具，https://github.com/junegunn/fzf\nbrew install shellcheck # 检查自己写的shell，https://github.com/koalaman/shellcheck\nbrew install hexedit    # 二进制编辑器\nbrew install bat        # 包含语法高亮的less，替代cat。bat=less+cat\nbrew install exa        # 树形结构的ls，exa=ls+tree\nbrew install httpie     # 比curl友好的http客户端\nbrew install iperf3     # 网络性能测试工具\nbrew install htop       # 代替top: https://github.com/htop-dev/htop/\nbrew install glances    # 代替htop: https://github.com/nicolargo/glances\nbrew install ctop       # docker容器top\nbrew install dive       # 查看docker镜像的Layer\nbrew install jq         # json处理工具\nbrew install jless      # json查看工具\nbrew install tldr       # 命令行工具代码示例参考，比man和help直观: https://github.com/tldr-pages/tldr\nbrew install navi       # 交互式命令行示例参考，比tldr有交互性\n# 世界上最好的在线cheat文档: https://github.com/chubin/cheat.sh\ncurl https://cht.sh/:cht.sh | sudo tee /usr/local/bin/cht.sh \u0026\u0026 chmod +x /usr/local/bin/cht.sh\nbrew install lazydocker # 命令行的docker管理工具，非常适合linux这样没有docker desktop的平台\nbrew install mc         # midnight commander editor 仅次于vim和emacs的编辑器，比nano好用\nbrew install nmap       # 网络扫描工具\nbrew install sqlmap     # sql注入工具\nbrew install git-extras # git 扩展插件\nbrew install git-flow   # git flow工作流插件\nbrew install git-lfs    # git lfs大文件存储\nbrew install git-delta  # git diff工具 https://github.com/dandavison/delta\nbrew install lazygit    # git terminal ui\n# db client\nbrew install mycli      # mysql client\nbrew install pgcli      # postgresql client\nbrew install xo/xo/usql # 支持大部分数据库的客户端\nbrew install innotop    # innotop\n# zookeeper\nbrew tap let-us-go/zkcli               # A interactive Zookeeper client.\nbrew install zkcli                     # https://github.com/let-us-go/zkcli\n# java\nbrew install jenv       # jdk version manager\nbrew install openjdk@8  # jdk8\nsudo ln -sfn /usr/local/opt/openjdk@8/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-8.jdk\njenv add /usr/local/opt/openjdk@8/\n# node\nbrew install nvm        # node.js版本管理\nnvm install \u003cnode-version\u003e\nnpm install -g nrm      # node registry manager\n# cpp\nbrew install cppman     # cpp manual\n# ruby\nbrew install rbenv                     # https://github.com/rbenv/rbenv#homebrew-on-macos\nrbenv install 3.0.0                    # ruby-build install 3.0.0\n# android tools\nbrew install android-platform-tools    # adb fastboot and so on\nbrew install scrcpy                    # https://github.com/Genymobile/scrcpy\n# wifi tools\nbrew install aircrack-ng               # WiFi security auditing tools suite: https://github.com/aircrack-ng/aircrack-ng\nbrew install wifi-password             # current wifi password: https://github.com/rauchg/wifi-password\nbrew install hashcat                   # hash password recovery: https://github.com/hashcat/hashcat\nbrew install crunch                    # wordlist generator: https://github.com/crunchsec/crunch\n```\n\nother:\n```sh\niredis: https://github.com/laixintao/iredis\nkaf: https://github.com/birdayz/kaf\nclickhouse-cli: https://github.com/hatarist/clickhouse-cli\n```\n\nmore: \n\n* https://github.com/topics/terminal\n* https://github.com/jlevy/the-art-of-command-line\n* https://github.com/herrbischoff/awesome-macos-command-line\n* https://github.com/agarrharr/awesome-cli-apps\n* https://github.com/alebcay/awesome-shell\n* https://formulae.brew.sh/analytics/install/365d/\n\n---\n\n## 8. GUI app\n\n通过homebrew安装常用的GUI工具(🔑 表示开源软件)\n\n```sh\nbrew install --cask keka               # 解压缩软件\nbrew install --cask hiddenbar          # 导航栏图标工具\nbrew install --cask sublime-text       # 轻量小巧的编辑器\nbrew install --cask google-chrome      # 最好的浏览器\nbrew install --cask wechat             # 聊天工具\nbrew install --cask qqmusic            # 最喜欢的音乐软件\nbrew install --cask copytranslator     # 自助翻译神器，看论文的好帮手\nbrew install --cask drawio             # 画架构图必备，比plantuml直观 🔑\nbrew install --cask paintbrush         # 类似于windows上mspaint的画图工具 🔑\nbrew install --cask gifcapture         # 开源的一款gif录屏软件 🔑\nbrew install --cask gifox              # 氪金版的gif录屏软件，免费的有水印\nbrew install --cask gimp               # 像素图编辑器，开源版的Adobe Photoshop 🔑\nbrew install --cask inkscape           # 矢量图编辑器，开源版的Adobe Illustrator 🔑\nbrew install --cask visual-studio-code # 微软开源的一款超强大的编辑器 🔑\nbrew install --cask typora             # 简洁的Markdown编辑器 🔑\nbrew install --cask imhex              # 二进制编辑器 🔑\nbrew install --cask tencent-lemon      # 腾讯开发的垃圾清理工具\nbrew install --cask iina               # 基于mpv的视频播放器 🔑\nbrew install --cask eul                # Mac监控软件，颜值比stats高 🔑\nbrew install --cask stats              # Mac状态监控，比eul样式多 🔑\nbrew install --cask switchhosts        # hosts文件管理工具，gasmask的替代品 🔑\nbrew install --cask v2rayu             # 🪜，ShadowsocksX替代品 🔑\nbrew install --cask lightproxy         # 阿里出品的一款http抓包工具，可以替代charles 🔑\nbrew install --cask proxyman           # 另一款好用的http抓包工具，不过有些功能要收费\nbrew install --cask docker             # 应用容器 🔑\n# docker 阿里云镜像加速：https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors\nbrew install --cask virtualbox         # virtualbox虚拟机\nbrew install --cask vagrant            # 虚拟机部署vagrantfile，类似于docker，不过是基于虚拟机的 🔑\nbrew install --cask motrix             # 下载工具🔑\nbrew install --cask dbeaver-community  # 统一DB管理工具🔑\nbrew install --cask rectangle          # 窗口管理工具🔑\nbrew install --cask picgo              # 统一图床工具\n```\n\nmore: \n* https://github.com/serhii-londar/open-source-mac-os-apps\n* https://formulae.brew.sh/analytics/cask-install/365d/\n\n## 9. My Idea Color Scheme\n\n[Download jar](https://github.com/holmofy/oh-my-mac/raw/master/MyCodeColor.jar)\n\nimport color Scheme: Preferences \u003e Editor \u003e Color Scheme \u003e Import Scheme\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholmofy%2Foh-my-mac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholmofy%2Foh-my-mac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholmofy%2Foh-my-mac/lists"}