Skip to content

alexqhj/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Dotfiles

Installation

Clone the dotfiles repo:

git clone --bare https://github.com/alexqhj/dotfiles.git ~/.local/share/dotfiles.git

Reset and checkout the working directory (your home directory). NB: This will override files with the same name as those in the repository.

alias dotfiles="git --work-tree=$HOME/ --git-dir=$HOME/.local/share/dotfiles.git"
dotfiles reset HEAD
dotfiles checkout ~

Further setup

Run ~/bin/setupenv.sh.

Adding and editing dotfiles

dotfiles is aliased to git --work-tree=$HOME/ --git-dir=$HOME/.local/share/dotfiles.git in .zshrc.

To stage and commit dotfiles:

dotfiles add <file>
dotfiles commit -m "<message>"

If you decide to add a .gitignore that ignores everything, you must use the -f flag when staging files.

Releases

No releases published

Packages

No packages published

Languages