{"id":19677943,"url":"https://github.com/griffinqiu/dotfiles","last_synced_at":"2025-04-29T03:31:13.549Z","repository":{"id":148127524,"uuid":"55658479","full_name":"griffinqiu/dotfiles","owner":"griffinqiu","description":"Dotfiles, welcome to use and pull request","archived":false,"fork":false,"pushed_at":"2025-04-14T11:07:27.000Z","size":798,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-14T11:30:05.390Z","etag":null,"topics":["dotfiles","tmux","vim"],"latest_commit_sha":null,"homepage":"","language":"Vim Snippet","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/griffinqiu.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}},"created_at":"2016-04-07T02:53:11.000Z","updated_at":"2025-04-14T11:07:31.000Z","dependencies_parsed_at":"2024-11-11T17:40:34.178Z","dependency_job_id":"639db27c-62bf-4da4-a428-53e045e5cf10","html_url":"https://github.com/griffinqiu/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/griffinqiu%2Fdotfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/griffinqiu%2Fdotfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/griffinqiu%2Fdotfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/griffinqiu%2Fdotfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/griffinqiu","download_url":"https://codeload.github.com/griffinqiu/dotfiles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251426829,"owners_count":21587658,"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":["dotfiles","tmux","vim"],"created_at":"2024-11-11T17:35:44.669Z","updated_at":"2025-04-29T03:31:13.543Z","avatar_url":"https://github.com/griffinqiu.png","language":"Vim Snippet","funding_links":[],"categories":[],"sub_categories":[],"readme":"thoughtbot dotfiles\n===================\n\n![prompt](http://images.thoughtbot.com/thoughtbot-dotfiles-prompt.png)\n\nRequirements\n------------\n\nSet zsh as your login shell:\n\n    chsh -s $(which zsh)\n\nInstall\n-------\n\nClone onto your laptop:\n\n    git clone git://github.com/thoughtbot/dotfiles.git ~/dotfiles\n\n(Or, [fork and keep your fork\nupdated](http://robots.thoughtbot.com/keeping-a-github-fork-updated)).\n\nInstall [rcm](https://github.com/thoughtbot/rcm):\n\n    brew tap thoughtbot/formulae\n    brew install rcm\n\nInstall the dotfiles:\n\n    env RCRC=$HOME/dotfiles/rcrc rcup\n\nAfter the initial installation, you can run `rcup` without the one-time variable\n`RCRC` being set (`rcup` will symlink the repo's `rcrc` to `~/.rcrc` for future\nruns of `rcup`). [See\nexample](https://github.com/thoughtbot/dotfiles/blob/master/rcrc).\n\nThis command will create symlinks for config files in your home directory.\nSetting the `RCRC` environment variable tells `rcup` to use standard\nconfiguration options:\n\n* Exclude the `README.md`, `README-ES.md` and `LICENSE` files, which are part of\n  the `dotfiles` repository but do not need to be symlinked in.\n* Give precedence to personal overrides which by default are placed in\n  `~/dotfiles-local`\n* Please configure the `rcrc` file if you'd like to make personal\n  overrides in a different directory\n\n\nUpdate\n------\n\nFrom time to time you should pull down any updates to these dotfiles, and run\n\n    rcup\n\nto link any new files and install new vim plugins. **Note** You _must_ run\n`rcup` after pulling to ensure that all files in plugins are properly installed,\nbut you can safely run `rcup` multiple times so update early and update often!\n\nMake your own customizations\n----------------------------\n\nCreate a directory for your personal customizations:\n\n    mkdir ~/dotfiles-local\n\nPut your customizations in `~/dotfiles-local` appended with `.local`:\n\n* `~/dotfiles-local/aliases.local`\n* `~/dotfiles-local/git_template.local/*`\n* `~/dotfiles-local/gitconfig.local`\n* `~/dotfiles-local/psqlrc.local` (we supply a blank `.psqlrc.local` to prevent `psql` from\n  throwing an error, but you should overwrite the file with your own copy)\n* `~/dotfiles-local/tmux.conf.local`\n* `~/dotfiles-local/vimrc.local`\n* `~/dotfiles-local/vimrc.bundles.local`\n* `~/dotfiles-local/zshrc.local`\n* `~/dotfiles-local/zsh/configs/*`\n\nFor example, your `~/dotfiles-local/aliases.local` might look like this:\n\n    # Productivity\n    alias todo='$EDITOR ~/.todo'\n\nYour `~/dotfiles-local/gitconfig.local` might look like this:\n\n    [alias]\n      l = log --pretty=colored\n    [pretty]\n      colored = format:%Cred%h%Creset %s %Cgreen(%cr) %C(bold blue)%an%Creset\n    [user]\n      name = Dan Croak\n      email = dan@thoughtbot.com\n\nYour `~/dotfiles-local/vimrc.local` might look like this:\n\n    \" Color scheme\n    colorscheme github\n    highlight NonText guibg=#060606\n    highlight Folded  guibg=#0A0A0A guifg=#9090D0\n\nIf you don't wish to install a vim plugin from the default set of vim plugins in\n`.vimrc.bundles`, you can ignore the plugin by calling it out with `UnPlug` in\nyour `~/.vimrc.bundles.local`.\n\n    \" Don't install vim-scripts/tComment\n    UnPlug 'tComment'\n\n`UnPlug` can be used to install your own fork of a plugin or to install a shared\nplugin with different custom options.\n\n    \" Only load vim-coffee-script if a Coffeescript buffer is created\n    UnPlug 'vim-coffee-script'\n    Plug 'kchmck/vim-coffee-script', { 'for': 'coffee' }\n\n    \" Use a personal fork of vim-run-interactive\n    UnPlug 'vim-run-interactive'\n    Plug '$HOME/plugins/vim-run-interactive'\n\nTo extend your `git` hooks, create executable scripts in\n`~/dotfiles-local/git_template.local/hooks/*` files.\n\nYour `~/dotfiles-local/zshrc.local` might look like this:\n\n    # load pyenv if available\n    if which pyenv \u0026\u003e/dev/null ; then\n      eval \"$(pyenv init -)\"\n    fi\n\nYour `~/dotfiles-local/vimrc.bundles.local` might look like this:\n\n    Plug 'Lokaltog/vim-powerline'\n    Plug 'stephenmckinney/vim-solarized-powerline'\n\nzsh Configurations\n------------------\n\nAdditional zsh configuration can go under the `~/dotfiles-local/zsh/configs` directory. This\nhas two special subdirectories: `pre` for files that must be loaded first, and\n`post` for files that must be loaded last.\n\nFor example, `~/dotfiles-local/zsh/configs/pre/virtualenv` makes use of various shell\nfeatures which may be affected by your settings, so load it first:\n\n    # Load the virtualenv wrapper\n    . /usr/local/bin/virtualenvwrapper.sh\n\nSetting a key binding can happen in `~/dotfiles-local/zsh/configs/keys`:\n\n    # Grep anywhere with ^G\n    bindkey -s '^G' ' | grep '\n\nSome changes, like `chpwd`, must happen in `~/dotfiles-local/zsh/configs/post/chpwd`:\n\n    # Show the entries in a directory whenever you cd in\n    function chpwd {\n      ls\n    }\n\nThis directory is handy for combining dotfiles from multiple teams; one team\ncan add the `virtualenv` file, another `keys`, and a third `chpwd`.\n\nThe `~/dotfiles-local/zshrc.local` is loaded after `~/dotfiles-local/zsh/configs`.\n\nvim Configurations\n------------------\n\nSimilarly to the zsh configuration directory as described above, vim\nautomatically loads all files in the `~/dotfiles-local/vim/plugin` directory. This does not\nhave the same `pre` or `post` subdirectory support that our `zshrc` has.\n\nThis is an example `~/dotfiles-local/vim/plugin/c.vim`. It is loaded every time vim starts,\nregardless of the file name:\n\n    # Indent C programs according to BSD style(9)\n    set cinoptions=:0,t0,+4,(4\n    autocmd BufNewFile,BufRead *.[ch] setlocal sw=0 ts=8 noet\n\nWhat's in it?\n-------------\n\n[vim](http://www.vim.org/) configuration:\n\n* [fzf](https://github.com/junegunn/fzf.vim) for fuzzy file/buffer/tag finding.\n* [Rails.vim](https://github.com/tpope/vim-rails) for enhanced navigation of\n  Rails file structure via `gf` and `:A` (alternate), `:Rextract` partials,\n  `:Rinvert` migrations, etc.\n* Run many kinds of tests [from vim]([https://github.com/janko-m/vim-test)\n* Set `\u003cleader\u003e` to a single space.\n* Switch between the last two files with space-space.\n* Syntax highlighting for Markdown, HTML, JavaScript, Ruby, Go, Elixir, more.\n* Use [Ag](https://github.com/ggreer/the_silver_searcher) instead of Grep when\n  available.\n* Map `\u003cleader\u003ect` to re-index ctags.\n* Use [vim-mkdir](https://github.com/pbrisbin/vim-mkdir) for automatically\n  creating non-existing directories before writing the buffer.\n* Use [vim-plug](https://github.com/junegunn/vim-plug) to manage plugins.\n\n[tmux](http://robots.thoughtbot.com/a-tmux-crash-course)\nconfiguration:\n\n* Improve color resolution.\n* Remove administrative debris (session name, hostname, time) in status bar.\n* Set prefix to `Ctrl+s`\n* Soften status bar color from harsh green to light gray.\n\n[git](http://git-scm.com/) configuration:\n\n* Adds a `create-branch` alias to create feature branches.\n* Adds a `delete-branch` alias to delete feature branches.\n* Adds a `merge-branch` alias to merge feature branches into master.\n* Adds an `up` alias to fetch and rebase `origin/master` into the feature\n  branch. Use `git up -i` for interactive rebases.\n* Adds `post-{checkout,commit,merge}` hooks to re-index your ctags.\n* Adds `pre-commit` and `prepare-commit-msg` stubs that delegate to your local\n  config.\n* Adds `trust-bin` alias to append a project's `bin/` directory to `$PATH`.\n\n[Ruby](https://www.ruby-lang.org/en/) configuration:\n\n* Add trusted binstubs to the `PATH`.\n* Load the ASDF version manager.\n\nShell aliases and scripts:\n\n* `b` for `bundle`.\n* `g` with no arguments is `git status` and with arguments acts like `git`.\n* `migrate` for `rake db:migrate db:rollback \u0026\u0026 rake db:migrate db:test:prepare`.\n* `mcd` to make a directory and change into it.\n* `replace foo bar **/*.rb` to find and replace within a given list of files.\n* `tat` to attach to tmux session named the same as the current directory.\n* `v` for `$VISUAL`.\n\nThanks\n------\n\nThank you, [contributors](https://github.com/thoughtbot/dotfiles/contributors)!\nAlso, thank you to Corey Haines, Gary Bernhardt, and others for sharing your\ndotfiles and other shell scripts from which we derived inspiration for items\nin this project.\n\nLicense\n-------\n\ndotfiles is copyright © 2009-2018 thoughtbot. It is free software, and may be\nredistributed under the terms specified in the [`LICENSE`] file.\n\n[`LICENSE`]: /LICENSE\n\nAbout thoughtbot\n----------------\n\n![thoughtbot](http://presskit.thoughtbot.com/images/thoughtbot-logo-for-readmes.svg)\n\ndotfiles is maintained and funded by thoughtbot, inc.\nThe names and logos for thoughtbot are trademarks of thoughtbot, inc.\n\nWe love open source software!\nSee [our other projects][community].\nWe are [available for hire][hire].\n\n[community]: https://thoughtbot.com/community?utm_source=github\n[hire]: https://thoughtbot.com/hire-us?utm_source=github\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgriffinqiu%2Fdotfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgriffinqiu%2Fdotfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgriffinqiu%2Fdotfiles/lists"}