{"id":16804956,"url":"https://github.com/pseudoyu/dotfiles","last_synced_at":"2025-08-20T00:39:04.900Z","repository":{"id":41823479,"uuid":"498210691","full_name":"pseudoyu/dotfiles","owner":"pseudoyu","description":"我的 macOS 与 Linux 配置","archived":false,"fork":false,"pushed_at":"2023-08-27T09:58:29.000Z","size":39976,"stargazers_count":46,"open_issues_count":0,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-14T09:46:30.901Z","etag":null,"topics":["git","macos","oh-my-zsh","vim"],"latest_commit_sha":null,"homepage":"","language":"Vim Script","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/pseudoyu.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":"2022-05-31T06:18:28.000Z","updated_at":"2024-08-29T08:17:32.000Z","dependencies_parsed_at":"2024-10-26T23:31:21.913Z","dependency_job_id":null,"html_url":"https://github.com/pseudoyu/dotfiles","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pseudoyu/dotfiles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pseudoyu%2Fdotfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pseudoyu%2Fdotfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pseudoyu%2Fdotfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pseudoyu%2Fdotfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pseudoyu","download_url":"https://codeload.github.com/pseudoyu/dotfiles/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pseudoyu%2Fdotfiles/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271247169,"owners_count":24725903,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["git","macos","oh-my-zsh","vim"],"created_at":"2024-10-13T09:46:38.506Z","updated_at":"2025-08-20T00:39:04.875Z","avatar_url":"https://github.com/pseudoyu.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dotfiles\nMy macOS and Linux Configuration Files\n\n## Config yabai\n\n```sh\n# Install\nbrew install koekeishiya/formulae/yabai\n\n# install the scripting addition\nsudo yabai --install-sa\n\n# if macOS Big Sur or Monterey, load the scripting addition manually; follow instructions below to automate on startup\nsudo yabai --load-sa\n\n# start yabai\nbrew services start yabai\n```\n\n```sh\n# set start when booting\nsudo visudo -f /private/etc/sudoers.d/yabai\n```\n\n```plaintext\n# replace \u003cuser\u003e with your username (output of: whoami).\n# change the path to the yabai binary if necessary  (output of: which yabai)\n\u003cuser\u003e ALL = (root) NOPASSWD: /usr/local/bin/yabai --load-sa\n```\n\n## Config skhd\n\n```sh\n# Install\nbrew install koekeishiya/formulae/skhd\n\n# Start\nbrew services start skhd\n```\n\n## Config your git\n```sh\n# git 配置\ngit config --global user.name \"name\"\ngit config --global user.email \"name@email.com\"\nssh-keygen -t rsa -b 4096 -C \"name@email.com\"\n\n# 查看公钥并复制到 github ssh key\ncat ~/.ssh/id_rsa.pub\n\n# macOS\nbrew install git-delta\n\n# Linux\n# https://dandavison.github.io/delta/installation.html\n```\n\n## Git gpg config\n\n### Use 1Password ssh agent to config automatically\n\nhttps://developer.1password.com/docs/ssh/agent/\n\n### Use gpg to config manually\n\n```sh\n# macOS安装 gpg\nbrew install gpg\n\n# 配置 gpg\ngpg --gen-key\ngpg --full-generate-key --expert\ngpg --list-secret-keys --keyid-format LONG\n\n# 导出公钥并复制到 github gpg key\ngpg --armor --export 3AA5C34371567BD2\n\n# Debian/Ubuntu 安装 gpg\nsudo apt-get install gnupg2\n\n# 配置 gpg\ngpg2 --gen-key\ngpg2 --full-generate-key --expert\ngpg2 --list-secret-keys --keyid-format LONG\n\n# 导出公钥并复制到 github gpg key\ngpg2 --armor --export 3AA5C34371567BD2\n\n# 配置环境变量\necho 'export GPG_TTY=$(tty)' \u003e\u003e ~/.zshrc\nsource ~/.zshrc\n```\n\n## git-cz and git-chglog config\n```sh\n# 安装 git-cz\nnpm install -g commitizen\n\n# 安装 changelog\nnpm install -g cz-conventional-changelog\n\n# 配置全局变量\necho '{ \"path\": \"cz-conventional-changelog\" }' \u003e ~/.czrc\n```\n\n## zsh Conf\n\n### Use x-cmd to config\n\nhttps://cn.x-cmd.com/\n\n### Config manually\n\n```sh\nsudo apt install wget git curl\n\n# Theme\nsh -c \"$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)\"\ncurl -sS https://starship.rs/install.sh | sh\n\n# zsh-autosuggestions\ngit clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions\n\n# zsh-syntax-highlighting\ngit clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting\n\n# zsh-history-substring-search\ngit clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search\n\n# zsh-wakatime\ncd ~/.oh-my-zsh/custom/plugins \u0026\u0026 git clone https://github.com/wbingli/zsh-wakatime.git\n\n# fzf-zsh-plugin\ngit clone https://github.com/unixorn/fzf-zsh-plugin.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/fzf-zsh-plugin\n```\n\n### Add these lines to .zshrc\n```sh\neval \"$(starship init zsh)\"\n```\n\n## Before Installing Vim\n```sh\ncurl -fLo ~/.vim/autoload/plug.vim --create-dirs \\\n    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim\n```\n\n## After Installing Vim, Download the Plugin\n```sh\n$ vim\n$ :GoInstallBinaries\n$ :PlugInstall\n$ :PlugClean\n$ :PlugUpdate\n```\n\n## Go Setting\n```sh\nwget https://golang.org/dl/go1.16.7.linux-amd64.tar.gz\nsudo tar xzvf go1.16.7.linux-amd64.tar.gz -C /usr/local/\nmkdir -p $HOME/go/{bin,pkg,src}\n```\n\n### Add these lines to .zshrc\n```sh\nexport GOPATH=$HOME/go\nexport GOROOT=/usr/local/go\nexport PATH=$PATH:$GOROOT/bin:$GOPATH/bin\n```\n\n## Rust Setting\n```sh\ncurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpseudoyu%2Fdotfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpseudoyu%2Fdotfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpseudoyu%2Fdotfiles/lists"}