]> git.zndr.dk Git - dotfiles.git/commitdiff
Add dotfiles init script
authorJannik ZANDER <jzander@grundfos.com>
Tue, 26 Dec 2017 12:49:36 +0000 (13:49 +0100)
committerJannik ZANDER <jzander@grundfos.com>
Tue, 26 Dec 2017 12:49:36 +0000 (13:49 +0100)
README.md
dotfiles-init.sh [new file with mode: 0644]

index 0929f4b4001abc8063ee7ac158ec014807d739a8..044eda852f215094badb70b167aedceaa6419ab0 100644 (file)
--- 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 (file)
index 0000000..0608ae0
--- /dev/null
@@ -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