Skip to content

gmolveau/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My dotfiles

Getting started

# init the repo
git init --bare ${HOME}/.dotfiles
# ignore everything so you don't accidentally commit things
echo "*" >> ${HOME}/.dotfiles/info/exclude
# add the alias to your .bashrc or .zshrc
alias dotfiles='/usr/bin/git --git-dir=${HOME}/.dotfiles/ --work-tree=${HOME}'
# you can now use the alias
dotfiles config --local status.showUntrackedFiles no
dotfiles remote add origin git@github.com:YOUR_USERNAME/dotfiles.git
# add the files you want (-f to force add as we exclude everything)
dotfiles add -f .zshrc
dotfiles commit -m "add zshrc"
dotfiles push -u origin master

Install on a new machine

# clone the repo
git clone --bare https://github.com/gmolveau/dotfiles.git ${HOME}/.dotfiles
# ignore everything so you don't accidentally commit things
echo "*" >> ${HOME}/.dotfiles/info/exclude
# add the alias to your .bashrc or .zshrc
alias dotfiles='/usr/bin/git --git-dir=${HOME}/.dotfiles/ --work-tree=${HOME}'
# you can now use the alias
dotfiles config --local status.showUntrackedFiles no
# when you're ready, clone all the files in your $HOME (use -f if you want to override your current files)
dotfiles checkout

About

my dotfiles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published