]> git.zndr.dk Git - dotfiles.git/commitdiff
Fix dotfiles-init.sh
authorJannik ZANDER <jzander@grundfos.com>
Tue, 26 Dec 2017 13:12:05 +0000 (14:12 +0100)
committerJannik ZANDER <jzander@grundfos.com>
Tue, 26 Dec 2017 13:12:05 +0000 (14:12 +0100)
dotfiles-init.sh

index 0608ae06218a7918e003f5e44dd4d23fa6cfe085..42f65d30a122782abf7ffe66c37b526bfa1d023a 100644 (file)
@@ -1,6 +1,12 @@
+#!/usr/bin/env bash
+
+dotfiles()
+{
+  git --git-dir=$HOME/.dotfiles --work-tree=$HOME "$@"
+}
+
 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