My own dotfiles based on David Inga’s dotfiles.
First, install the Command Line Tools:
xcode-select --install
and Homebrew.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then we can install brew dependencies:
./brew.sh
Add the new shell to the list of legit shells:
sudo bash -c "echo /usr/local/bin/bash >> /private/etc/shells"
Change the shell for the user
chsh -s /usr/local/bin/bash
You can clone the repository wherever you want. The bootstrapper script will pull in the latest version and copy the files to your home folder.
git clone https://github.com/j8seangel/dotfiles.git && cd dotfiles && source install.sh
To update, cd into your local dotfiles repository and then:
source install.sh
To setup the macosx configuration, run:
source macosx.sh
If ~/.path
exists, it will be sourced along with the other files, before any feature testing (such as detecting which version of ls
is being used) takes place.
Here’s an example ~/.path
file that adds /usr/local/bin
to the $PATH
:
export PATH="/usr/local/bin:$PATH"
If ~/.extra
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 ~/.extra
looks something like this:
GIT_AUTHOR_NAME="Your name"
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
git config --global user.name "$GIT_AUTHOR_NAME"
GIT_AUTHOR_EMAIL="[email protected]"
GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
git config --global user.email "$GIT_AUTHOR_EMAIL"
- Fork it!
- Create your feature branch:
git checkout -b feature/my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin feature/my-new-feature
- Submit a pull request :D