Skip to content

fouxarn/.dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Install on a new system

  1. Add alias to bashrc/zshrc
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
  1. Clone the repo
git clone --bare <git-repo-url> $HOME/.dotfiles
  1. Define the alias in the current shell scope:
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
  1. Checkout the actual content from the bare repository to your $HOME:
config checkout

The step above might fail with a message like:

error: The following untracked working tree files would be overwritten by checkout:
.bashrc
.gitignore

Please move or remove them before you can switch branches. Re-run the check out if you had problems

config checkout
  1. Set the flag showUntrackedFiles to no on this specific (local) repository:
config config --local status.showUntrackedFiles no

You're done, from now on you can now type config commands to add and update your dotfiles!

Releases

No releases published

Packages

No packages published

Languages