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

index 044eda852f215094badb70b167aedceaa6419ab0..6f00e224f5b4b379b5d7dce9747d8654fe296d45 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,9 +1,8 @@
 # dotfiles
 
-Download init script:
+Download and execute the dotfiles-init.sh file:
 
-    $ git archive --remote=git@bitbucket.org:jannikz/dotfiles.git HEAD dotfiles-init.sh
+    $ git archive --remote=git@bitbucket.org:jannikz/dotfiles.git HEAD bin/dotfiles-init.sh | tar -x
+    $ dotfiles-init.sh
+    $ rm dotfiles-init.sh
 
-Execute it:
-
-    $ ./dotfiles-init.sh
diff --git a/bin/dotfiles-init.sh b/bin/dotfiles-init.sh
new file mode 100644 (file)
index 0000000..42f65d3
--- /dev/null
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+
+dotfiles()
+{
+  git --git-dir=$HOME/.dotfiles --work-tree=$HOME "$@"
+}
+
+cd $HOME
+git init --bare $HOME/.dotfiles
+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
diff --git a/dotfiles-init.sh b/dotfiles-init.sh
deleted file mode 100644 (file)
index 42f65d3..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/usr/bin/env bash
-
-dotfiles()
-{
-  git --git-dir=$HOME/.dotfiles --work-tree=$HOME "$@"
-}
-
-cd $HOME
-git init --bare $HOME/.dotfiles
-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