Skip to content

armytrong/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

dotfiles

I got this guide and idea from https://www.atlassian.com/git/tutorials/dotfiles.

Installation of dotfiles:

  • Prior to the installation make sure you have committed the alias to your .bashrc or .zshrc:
alias config='/usr/bin/git --git-dir=$HOME/.cfg.git/ --work-tree=$HOME'
  • And that your source repository ignores the folder where you'll clone it, so that you don't create weird recursion problems:
echo ".cfg" >> .gitignore
  • Now clone your dotfiles into a bare repository in a "dot" folder of your $HOME:
git clone --bare [email protected]:armytrong/dotfiles.git $HOME/.cfg.git
  • Define the alias in the current shell scope:
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
  • Checkout the actual content from the bare repository:
config checkout

For further help see the afore mentioned website.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published