{"id":24842258,"url":"https://github.com/rockyzhang24/dotfiles","last_synced_at":"2025-10-14T14:32:11.438Z","repository":{"id":45206744,"uuid":"259834369","full_name":"rockyzhang24/dotfiles","owner":"rockyzhang24","description":"🔧 My dotfiles on  macOS for Neovim, Zsh, kitty, lf, sketchybar, etc","archived":false,"fork":false,"pushed_at":"2025-10-08T00:09:47.000Z","size":6421,"stargazers_count":208,"open_issues_count":0,"forks_count":13,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-10-08T02:31:52.391Z","etag":null,"topics":["alacritty","config","dotfiles","fzf","ghostty","karabiner-elements","kitty","lf","linux","macos","neovim","ranger","sketchybar","tmux","vifm","vim","wezterm","yabai","zsh"],"latest_commit_sha":null,"homepage":"","language":"Lua","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/rockyzhang24.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-04-29T05:38:32.000Z","updated_at":"2025-10-08T00:09:51.000Z","dependencies_parsed_at":"2023-02-16T17:16:41.830Z","dependency_job_id":"0fd1468d-fa57-410d-8d6a-38a826b5e9a8","html_url":"https://github.com/rockyzhang24/dotfiles","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rockyzhang24/dotfiles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rockyzhang24%2Fdotfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rockyzhang24%2Fdotfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rockyzhang24%2Fdotfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rockyzhang24%2Fdotfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rockyzhang24","download_url":"https://codeload.github.com/rockyzhang24/dotfiles/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rockyzhang24%2Fdotfiles/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279019126,"owners_count":26086680,"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-10-14T02:00:06.444Z","response_time":60,"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":["alacritty","config","dotfiles","fzf","ghostty","karabiner-elements","kitty","lf","linux","macos","neovim","ranger","sketchybar","tmux","vifm","vim","wezterm","yabai","zsh"],"created_at":"2025-01-31T08:01:37.981Z","updated_at":"2025-10-14T14:32:11.434Z","avatar_url":"https://github.com/rockyzhang24.png","language":"Lua","funding_links":[],"categories":["Lua"],"sub_categories":[],"readme":"# .dotfiles\n\nMy dotfiles for `macOS` and `Linux`. Just cherry pick the piece of code you totally understand.\n\n![platform](https://img.shields.io/badge/platform-macOS%2FLinux-blue)\n![last commit](https://img.shields.io/github/last-commit/rockyzhang24/dotfiles)\n\n![demo](https://github.com/user-attachments/assets/de888ec1-a391-48f2-b951-0a7dfabdbb90)\n\n↗ Like the color theme? Please check [arctic.nvim](https://github.com/rockyzhang24/arctic.nvim).\n\n# ✨ Contents\n\n### 🔥 Text Editor\n\n* [Neovim](https://neovim.io) ([config](./.config/nvim/))\n\n### 🐚 Shell\n\n* [Zsh](https://www.zsh.org) ([config](./.config/zsh/))\n\n  * Use [Zimfw](https://zimfw.sh) framework\n  * The prompt is [Starship](https://starship.rs/)\n\n### 📟 Terminal Emulator\n\n* [Ghostty](https://ghostty.org/) ([config](./.config/ghostty/))\n* [Kitty](https://sw.kovidgoyal.net/kitty/) ([config](./.config/kitty/))\n* [Wezterm](https://wezfurlong.org/wezterm/) ([config](./.config/wezterm/))\n* [Alacritty](https://alacritty.org) ([config](./.config/alacritty/))\n\n### 🪄 Tiling Window Manager\n\n* [yabai](https://github.com/koekeishiya/yabai) ([config](./.config/yabai/))\n* [skhd](https://github.com/koekeishiya/skhd) ([config](./.config/yabai/))\n\n### 🗃️ Console File Manager\n\n* [lf](https://pkg.go.dev/github.com/gokcehan/lf) ([config](./.config/lf/))\n* [Vifm](https://vifm.info) ([config](./.config/vifm/))\n* [Ranger](https://ranger.github.io) ([config](./.config/ranger/))\n\n### 🪟 Menu Bar\n\n* [Sketchybar](https://github.com/FelixKratz/SketchyBar) ([config](./.config/sketchybar))\n\n### ⌨️ Keyboard Customizer\n\n* [Karabiner-Elements](https://karabiner-elements.pqrs.org) ([config](./.config/karabiner/))\n\n### 🧶 Others\n\n* [Tmux](https://github.com/tmux/tmux) ([config](./.tmux.conf))\n* [fzf](https://github.com/junegunn/fzf) ([config](./.config/fzf/))\n* My scripts: [bin](./.config/bin/)\n\n# 💡 How I am managing the dotfiles\n\nUsing a bare repository. The dotfiles can reside where they are. No symlinks needed.\n\n## Initial setup\n\nCreate a bare repository to store the history:\n\n```bash\ngit init --bare $HOME/dotfiles\n```\n\nCreate an alias in zshrc, tell Git where the history and the working tree live:\n\n```bash\nalias dot='git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'\n```\n\nTell Git not to show all the untracked files, otherwise all files under `$HOME` will be shown when running `git status`:\n\n```bash\ndot config status.showUntrackedFiles no\n```\n\nSet up the remote repository for syncing:\n\n```bash\ndot remote add origin https://github.com/rockyzhang24/dotfiles.git\n```\n\nDone! Now we can manage our dotfiles.\n\n```bash\ndot status\ndot add ~/.config/zsh\ndot commit -m \"update zsh config\"\ndot push origin master\n```\n\n## Clone to another machine\n\nClone the dotfiles into a bare repository:\n\n```bash\ngit clone --bare https://github.com/rockyzhang24/dotfiles.git $HOME/dotfiles\n```\n\nDefine the alias in the current shell scope:\n\n```bash\nalias dot='git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'\n```\n\nBackup the stock configuration files that will be overwritten:\n\n```bash\nmkdir -p .config-backup\ndot checkout 2\u003e\u00261 | egrep \"\\s+\\.\" | awk {'print $1'} | xargs -I{} mv {} .config-backup/{}\n```\n\nCheckout the actual content from the bare repository to `$HOME`:\n\n```bash\ndot checkout\n```\n\nDon't show untracked files and directories:\n\n```bash\ndot config status.showUntrackedFiles no\n```\n\nDone!\n\n## Notes\n\nIn order for [vim-fugitive](https://github.com/tpope/vim-fugitive) to recognize this bare repo, the following additional configurations are required:\n\n```bash\ndot config core.bare 'false'\ndot config core.worktree \"$HOME\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frockyzhang24%2Fdotfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frockyzhang24%2Fdotfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frockyzhang24%2Fdotfiles/lists"}