From: Jannik ZANDER Date: Tue, 26 Dec 2017 13:12:05 +0000 (+0100) Subject: Fix dotfiles-init.sh X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=e42a2ac412946c67c2b03bdd36f43b48697c35ab;p=dotfiles.git Fix dotfiles-init.sh --- diff --git a/dotfiles-init.sh b/dotfiles-init.sh index 0608ae0..42f65d3 100644 --- a/dotfiles-init.sh +++ b/dotfiles-init.sh @@ -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