My dotfiles
Find a file
2016-09-05 20:49:53 +01:00
vim Add vim stuff 2016-05-13 08:23:58 +01:00
.gitmodules Add vim stuff 2016-05-13 08:23:58 +01:00
bootstrap.sh More verbose setup 2016-07-13 13:38:11 +01:00
brew.sh Add relavent taps 2016-05-29 22:48:48 +01:00
curlrc Add cURL settings 2016-04-07 21:42:11 +01:00
gitconfig Use diff-so-fancy 2016-05-12 17:46:07 +01:00
gitignore Add a global gitignore 2016-04-08 03:42:12 +01:00
hushlogin Hush login details 2016-04-08 03:37:25 +01:00
LICENSE Initial commit 2016-03-06 12:50:00 +00:00
ncmpcpp Add ncmpcpp config 2016-05-16 09:40:18 +01:00
osx.sh Hide the menu bar 2016-05-29 21:17:58 +01:00
README.md Mention need to create ~/.extra 2016-05-13 13:00:05 +01:00
zshrc I use a new hostname for my server 2016-09-05 20:49:53 +01:00

dotfiles

Heres my dotfiles, inspired by people like Mathias. See his dotfiles at https://github.com/mathias/dotfiles.

The idea Im currently going down is to create a symlink from $HOME to this directory. There is one exception to this, the .gitconfig file. This derives from not wanting anyone to accidentally commiting as me to git, that would however require people to use this repo, unlikely. So my git credentials are stored in a .extra file which gets sourced. This then calls the relavent git command, which causes git to edit $HOME/.gitconfig. If that file was a symlink to this repo, then the repo would see the file as edited and the repo would then be in a dirty state, permanently.

Usage

First clone the repo.

As mentioned above my git credentials are stored in an untracked file: $HOME/.extra. This must be manually created, mine looks like:

# Git credentials
GIT_AUTHOR_NAME="Jonny Barnes"
GIT_COMMITER_NAME="$GIT_AUTHOR_NAME"
git config --global user.name "$GIT_AUTHOR_NAME"
GIT_AUTHOR_EMAIL="jonny@jonnybarnes.uk"
GIT_COMMITER_EMAIL="$GIT_AUTHOR_EMAIL"
git config --global user.email "$GIT_AUTHOR_EMAIL"

Run ./boostrap.sh, this will create all the necessary symlinks, then source .zshrc. This is a destructive process, so backup your dotfiles first.