based on https://github.com/mathiasbynens/dotfiles but modified:
- bash prompt (PS1):
- prompt with return status indicator
- date & time
- git_prompt as distributed with git & python venv compatible
- commented out most things that i don't use but found useful to know
- deleted some things i didn't like and didn't find useful to know
bootstrap.sh
symlinks stuff into your homedir instead of copying- always interactive
init
,.osx
,brew.sh
andcask.sh
aren't linked / copied to home dir
You can clone the repository wherever you want. (I like to keep it in ~/.dotfiles
.) The bootstrapper script will pull in the latest version and symlink them into your home folder.
git clone https://github.com/joernhees/dotfiles.git && cd dotfiles && ./bootstrap.sh
To update, cd
into your local dotfiles
repository and then:
./bootstrap.sh
Afterwards you probably want to run the following commands to set your git credentials:
# not included to prevent others from committing in my name:
git config --global user.name "firstname lastname"
git config --global user.email "your@e.mail"
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.
You could also use ~/.extra
to override settings, functions and aliases from my dotfiles repository. It’s probably better to fork this repository instead, though.
When setting up a new Mac, you may want to set some sensible OS X defaults:
./.osx
When setting up a new Mac, you may want to install some common Homebrew formulae (after installing Homebrew, of course):
./brew.sh
You could also install native apps with brew cask
:
./cask.sh
Suggestions/improvements welcome!