+
Skip to content

khsing/dotfiles

 
 

Repository files navigation

Guixing’s dotfiles

This dotfiles fork from mathiasbynens/dotfiles, and I replaced bash with zsh and using sorin-ionescu/zprezto as zsh custom.

Installation

Using Git and the bootstrap script

You can clone the repository wherever you want. (I like to keep it in ~/workspace/dotfiles) The bootstrapper script will create links at home folder.

git clone https://github.com/khsing/dotfiles.git && cd dotfiles &&  bash bootstrap.sh

Add custom commands without creating a new fork

If ~/.zextra exists, it will be sourced along with the other files. You can use this to add a few custom commands without the need to fork this entire repository, or to add commands you don’t want to commit to a public repository.

My ~/.zextra looks something like this:

# Git credentials
# Not in the repository, to prevent people from accidentally committing under my name
GIT_AUTHOR_NAME="Guixing Bai"
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
git config --global user.name "$GIT_AUTHOR_NAME"
GIT_AUTHOR_EMAIL="khsing.cn@gmail.com"
GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
git config --global user.email "$GIT_AUTHOR_EMAIL"

You could also use ~/.zextra to override settings, functions and aliases from my dotfiles repository. It’s probably better to fork this repository instead, though.

Sensible OS X defaults

When setting up a new Mac, you may want to set some sensible OS X defaults:

./.macos

Install Homebrew formulae

When setting up a new Mac, you may want to install some common Homebrew formulae (after installing Homebrew, of course):

./brew.sh

Feedback

Suggestions/improvements welcome!

Author

twitter/khsing
Guixing Bai

Thanks to…

About

.files, including ~/.macos — sensible hacker defaults for OS X

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 53.4%
  • Shell 44.4%
  • Ruby 1.9%
  • Other 0.3%
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载