Skip to content

jackm245/Dotfiles-Artix-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

Jack Morgan's Dotfiles

Table of Contents

Description

Programs

How these dotfiles are maintained

To maintain these dotfiles I created a bare git repository following Atlassian's Tutorial

  1. Create a .config file - which is a bare Git repository - that will track the dotfiles.
git init --bare $HOME/.cfg
  1. Create a config alias that is used to specifically interact with the dotfiles repository.
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
  1. Set a flag to hide the files we are not explicitly tracking
config config --local status.showUntrackedFiles no
  1. Add the alias definition to your .bashrc or use this line provided for convenience.
echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.bashrc

These dotfiles can then my updated using git, but by using the config command

config status
config add .vimrc
config commit -m "Add vimrc"
config add .bashrc
config commit -m "Add bashrc"
config push

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.