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 -
# 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')
# 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