{"id":16189533,"url":"https://github.com/shuhei/dotfiles","last_synced_at":"2025-09-25T02:31:30.160Z","repository":{"id":2304501,"uuid":"3263471","full_name":"shuhei/dotfiles","owner":"shuhei","description":"🍞  My personal dotfiles that have configurations for Vim, tmux, Alacritty, Git, etc.","archived":false,"fork":false,"pushed_at":"2022-11-13T14:47:14.000Z","size":370,"stargazers_count":7,"open_issues_count":6,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-12T13:46:35.471Z","etag":null,"topics":["alacritty","dotfiles","git","tmux","vim"],"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/shuhei.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}},"created_at":"2012-01-25T08:43:18.000Z","updated_at":"2022-08-22T22:16:49.000Z","dependencies_parsed_at":"2023-01-11T16:09:13.371Z","dependency_job_id":null,"html_url":"https://github.com/shuhei/dotfiles","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/shuhei%2Fdotfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuhei%2Fdotfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuhei%2Fdotfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuhei%2Fdotfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shuhei","download_url":"https://codeload.github.com/shuhei/dotfiles/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234147904,"owners_count":18786934,"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":["alacritty","dotfiles","git","tmux","vim"],"created_at":"2024-10-10T07:35:48.476Z","updated_at":"2025-09-25T02:31:24.887Z","avatar_url":"https://github.com/shuhei.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dotfiles\n\nMy personal configurations for Vim, tmux, Alacritty, Git, etc.\n\n## Installation\n\nClone this repository to your home directory and run the init script.\n\n```shell\ncd ~\ngit clone git@github.com:shuhei/dotfiles.git\n\n./dotfiles/init.sh\n```\n\nCheck `alacritty/base.yml` and install the fonts used in the configuration.\n\n## Color scheme\n\nUse `colorscheme` command to update color schemes of Alacritty, Vim and partially tmux together.\n\n```shell\n# Good for morning\ncolorscheme ayu-light\n# Good for night\ncolorscheme nord\ncolorscheme pink-moon\n```\n\nThe command generates `.alacritty.yml` and `.tmux.color.conf`.\n\n## Bash\n\nAt the bottom of `~/.bash_profile`:\n\n```shell\nsource ~/dotfiles/.bash_profile\n```\n\n## Zsh\n\nInstall [oh-my-zsh](https://github.com/ohmyzsh/ohmyzsh).\n\n`~/.zshrc`:\n\n```shell\nexport ZSH=\"/Users/shuhei/.oh-my-zsh\"\n\n# Load before oh-my-zsh.sh because `plugins` are listed in this file.\nsource ~/dotfiles/.zshrc\n\n# Set a custom directory for the custom prompt\nZSH_CUSTOM=~/dotfiles/.oh-my-zsh\nZSH_THEME=\"euro\"\n\nsource $ZSH/oh-my-zsh.sh\n```\n\n[Delete completion cache files](https://github.com/ohmyzsh/ohmyzsh/wiki/FAQ#i-have-enabled-a-completion-plugin-but-the-completion-doesnt-work) when you add a new completion plugin.\n\n### Cookbook\n\n- Reload `.zshrc` including completion: `reload_zsh`\n- Fuzzy-find command arguments: `\u003cC-t\u003e` or `**\u003cTAB\u003e` (read [junegunn/fzf](https://github.com/junegunn/fzf) for more)\n\n## Git\n\nAt the top of `~/.gitconfig`:\n\n```\n[include]\n  path = ~/dotfiles/.gitconfig\n```\n\nDon't forget to set your user name and email address:\n\n```sh\ngit config --global user.name \"Shuhei Kagawa\"\ngit config --global user.email \"shuhei.kagawa@gmail.com\"\n```\n\n## Vim\n\n### Vim 8 vs Neovim\n\nThis repo’s configuration should be compatible with both of Neovim and Vim 8. To switch between them, delete `~/.cache/dein` and install `dein.vim` again because the cache directory built for Vim 8 doesn't work for Neovim and vice versa.\n\n### Cookbook\n\n#### Text Editing\n\n- Change `''` to `\"\"`: `cs'\"` ([vim-surround](https://github.com/tpope/vim-surround))\n\n#### Navigation\n\n- Open the file navigator: `,f`\n  - Toggle help: `?`\n  - File operations: `m`\n- Search for a file by name (only files in git): `\u003cC-p\u003e`\n  - Open a file: `\u003cCR\u003e`\n  - Open a file in a vertical split: `\u003cC-v\u003e`\n  - Close `fzf`: `\u003cC-c\u003e` or `\u003cESC\u003e`\n- Search for a file by name (all files): `\u003cC-a\u003e`\n- Grep files: `\u003cC-g\u003e`\n- Open a list of buffers: `,b`\n- Open URL under the cursor: `gx`\n- Move to the file under the cursor: `gf`\n- Go back to the previous position in a file: `\u003cC-o\u003e` or ` `` `\n- Go forward again after `\u003cC-o\u003e`: `\u003cC-i\u003e`\n- Go back to the previous buffer: `:bp`\n\n#### Window\n\n- Move to the left/right window: `\u003cC-s\u003eh`/`\u003cC-s\u003el` (`:help window-move-cursor`)\n- Move the current window to the left/right: `\u003cC-w\u003eH`/`\u003cC-w\u003eL` (`:help window-moving`)\n\n#### Git\n\n- Show git commit history: `\u003cC-c\u003e` (fzf) or `,gv` (gitv)\n\n#### Plugins\n\n- Update plugins: `:call dein#update()`\n- Check plugins unnecessarily loaded as lazy plugins: `:echo dein#check_lazy_plugins()`\n\n#### Switching modes\n\n- Back to normal mode: `\u003cEsc\u003e` or `\u003cC-[\u003e`\n- One-off command in insert mode: `\u003cC-o\u003e`\n\n#### Misc\n\n- Resize panes: `,\u003c`, `,\u003e`\n- Reload `.vimrc`: `:so $MYVIMRC`\n- Focus mode: `,\u003cSpace\u003e`\n- Add a word to the spell check dictionary: `zg` (`:help spell` for more information)\n- Show highlighting at the cursor: `,hl`\n- Organize imports `:OR`\n\n## tmux\n\n### Cookbook\n\n- Open session list: `\u003cC-s\u003es`\n- Save sessions: `\u003cC-s\u003e\u003cS-s\u003e`\n- Restore sessions: `\u003cC-s\u003e\u003cS-r\u003e`\n- Enter copy mode: `\u003cC-s\u003ep`\n  - Start selection: `v`\n  - Start rectangle selection: `\u003cC-v\u003e`\n- Reload tmux config: `\u003cC-s\u003eI`\n- Switch layout (vertical \u003c-\u003e horizontal): `\u003cC-s\u003e\u003cSpace\u003e`\n- Resize panes horizontally: `\u003cC-s\u003e\u003cLeft\u003e`, `\u003cC-s\u003e\u003cRight\u003e`\n- Resize panes vertically: `\u003cC-s\u003e\u003cUp\u003e`, `\u003cC-s\u003e\u003cDown\u003e`\n\n#### Focus mode\n\n- Start: `\u003cC-s\u003e\u003cC-g\u003e`\n- End: `\u003cC-s\u003e\u003cC-d\u003e`\n- Increase pane width: `\u003cC-s\u003e=`\n- Decrease pane width: `\u003cC-s\u003e-`\n\n### Plugins\n\n- Install plugins: `\u003cC-s\u003eI`\n- Update plugins: `\u003cC-s\u003eU`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuhei%2Fdotfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshuhei%2Fdotfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuhei%2Fdotfiles/lists"}