From e51553742736f8bc6a0f70cf2f618aed39b70582 Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Tue, 26 Dec 2017 13:49:36 +0100 Subject: [PATCH] Add dotfiles init script --- README.md | 2 +- dotfiles-init.sh | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 dotfiles-init.sh diff --git a/README.md b/README.md index 0929f4b..044eda8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # dotfiles -Download dotfiles init script: +Download init script: $ git archive --remote=git@bitbucket.org:jannikz/dotfiles.git HEAD dotfiles-init.sh diff --git a/dotfiles-init.sh b/dotfiles-init.sh new file mode 100644 index 0000000..0608ae0 --- /dev/null +++ b/dotfiles-init.sh @@ -0,0 +1,8 @@ +cd $HOME +git init --bare $HOME/.dotfiles +alias dotfiles='git --git-dir=$HOME/.dotfiles --work-tree=$HOME' +dotfiles config --local status.showUntrackedFiles no +dotfiles remote add origin git@bitbucket.org:jannikz/dotfiles.git +dotfiles fetch +dotfiles reset --hard origin/master +dotfiles branch -u origin/master -- 2.43.0