From 235aa9b729d637e16c03c817f529c6d0f1b60574 Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Fri, 8 Jun 2018 09:17:11 +0200 Subject: [PATCH] Update 'dotfiles-init.sh' --- bin/dotfiles-init.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/bin/dotfiles-init.sh b/bin/dotfiles-init.sh index fd52be9..dd6198c 100755 --- a/bin/dotfiles-init.sh +++ b/bin/dotfiles-init.sh @@ -1,14 +1,17 @@ #!/usr/bin/env bash -dotfiles() +# Define dit command +dit () { git --git-dir=$HOME/.dotfiles --work-tree=$HOME "$@" } +# Perform initial steps 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 \ No newline at end of file +dit config --local status.showUntrackedFiles no +dit remote add origin git@jaza.me:jaz/dotfiles.git +dit fetch +dit reset --hard origin/master +dit branch -u origin/master + -- 2.43.0