From 28ade11bb2f03253257c952c6790d99a57b18fc8 Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Wed, 30 Oct 2019 11:04:26 -0400 Subject: [PATCH] Added dynamic .gitconfig and more instructions --- .gitconfig | 5 ++--- README.md | 14 +++++++++++++- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.gitconfig b/.gitconfig index c7f0742..946ef3e 100644 --- a/.gitconfig +++ b/.gitconfig @@ -1,6 +1,5 @@ -[user] - name = Kris Lamoureux - email = KrisPublicEmail@gmail.com [core] editor = vim +[include] + path = ~/.gitconfig_other diff --git a/README.md b/README.md index 5202cdb..e9c747a 100644 --- a/README.md +++ b/README.md @@ -8,15 +8,26 @@ You may want to backup your current dotfiles: mv ~/.bash_aliases ~/.bash_aliases-$(date '+%Y%m%d%H%M%S') mv ~/.bashrc ~/.bashrc-$(date '+%Y%m%d%H%M%S') mv ~/.vimrc ~/.vimrc-$(date '+%Y%m%d%H%M%S') +mv ~/.gitconfig ~/.gitconfig-$(date '+%Y%m%d%H%M%S') ``` + +You'll want to make sure a couple of files exist to help extend this config with your own regardless if you use them: + +``` +touch ~/.gitconfig_other +touch ~/.other_aliases +``` + + Then install symlinks in their place: ``` git clone git@github.com:krislamo/dotfiles.git && \ cd dotfiles && \ ln -nsf $(pwd)/.bash_aliases ~/.bash_aliases && \ ln -nsf $(pwd)/.bashrc ~/.bashrc && \ -ln -nsf $(pwd)/.vimrc ~/.vimrc +ln -nsf $(pwd)/.vimrc ~/.vimrc && \ +ln -nsf $(pwd)/.gitconfig ~/.gitconfig ``` #### Copyrights and Licenses @@ -27,3 +38,4 @@ This program is free software: you can redistribute it and/or modify it under th This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . +