From: Jannik ZANDER Date: Sun, 17 Jun 2018 08:58:20 +0000 (+0200) Subject: Rename dotfiles.git dit.git X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=90bb7e80df3044781d0d9f2df170d749415fca49;p=dotfiles.git Rename dotfiles.git dit.git --- diff --git a/.config/bash/aliases b/.config/bash/aliases index 7ca27e3..198f277 100644 --- a/.config/bash/aliases +++ b/.config/bash/aliases @@ -24,7 +24,7 @@ alias fgrep='fgrep --color=auto' if [ -e /usr/bin/vimx ]; then alias vim='/usr/bin/vimx'; fi # Shortcuts -alias dit='git --git-dir=$HOME/.dotfiles --work-tree=$HOME' +alias dit='git --git-dir=$HOME/.dit --work-tree=$HOME' alias h='history' # Easier navigation: .., ..., ...., ....., ~ and - diff --git a/README.md b/README.md index 76602ee..3536666 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # dotfiles -1/ First download 'dotfiles-init.sh' ('git' can be used for this also...) +1/ First download 'dit-init.sh' - $ git archive --remote=git@jaza.me:jaz/dotfiles.git master bin/dotfiles-init.sh | tar -x --strip-components 1 + $ git archive --remote=git@jaza.me:jaz/dit.git master bin/dit-init.sh | tar -x --strip-components 1 2/ Next execute it - $ ./dotfiles-init.sh + $ ./dit-init.sh 3/ Now you can manage dotfiles with 'dit' (same as 'git') diff --git a/bin/dotfiles-init.sh b/bin/dotfiles-init.sh index dd6198c..2daafbd 100755 --- a/bin/dotfiles-init.sh +++ b/bin/dotfiles-init.sh @@ -3,14 +3,14 @@ # Define dit command dit () { - git --git-dir=$HOME/.dotfiles --work-tree=$HOME "$@" + git --git-dir=$HOME/.dit --work-tree=$HOME "$@" } # Perform initial steps cd $HOME -git init --bare $HOME/.dotfiles +git init --bare $HOME/.dit dit config --local status.showUntrackedFiles no -dit remote add origin git@jaza.me:jaz/dotfiles.git +dit remote add origin git@jaza.me:jaz/dit.git dit fetch dit reset --hard origin/master dit branch -u origin/master