mishra-sid / dotfiles

My Dotfiles using bare git repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dotfiles

My Dotfiles using bare git repository

Usage Instructions

On a new machine, to setup dotfiles do the following:

  1. Clone dotfiles repo to home directory
   git clone --bare https://github.com/mishra-sid/dotfiles.git $HOME/dotfiles 
  1. Execute the following commands:
   alias config='git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'
   echo "dotfiles" >> .gitignore
   mkdir -p .config-backup && \
     config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | \
     xargs -I{} mv {} .config-backup/{}
   config checkout
   config config --local status.showUntrackedFiles no

About

My Dotfiles using bare git repository


Languages

Language:Vim Script 100.0%