From: Jannik ZANDER Date: Tue, 26 Dec 2017 12:49:36 +0000 (+0100) Subject: Add dotfiles init script X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=e51553742736f8bc6a0f70cf2f618aed39b70582;p=dotfiles.git Add dotfiles init script --- 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