Skip to content

shleppy/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shleppy's Dotfiles

This repo contains my dotfiles if you couldn't tell from the title.

Installation on new system

Create a fork and do the following:

  • Add the following alias to your .bashrc or .zshrc

Note: you could rename the alias however you please (e.g. dotfiles)

alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME
  • Add .cfg to your .gitignore
echo ".cfg" >> $HOME/.gitignore
  • Clone this repo as a bare repo

Note: you might need to change the url if you use http

# if you use ssh ue the following:
git clone --bare git@github.com:shleppy/dotfiles.git $HOME/.cfg
# if you use https use the following:
git clone --bare https://github.com/shleppy/dotfiles.git $HOME/.cfg
  • Checkout the content from the bare repo

Note that this might cause conflicts, choose to either remove the conflicting files or back them up

config checkout
  • Ignore untracked files when using git on this repo
config config --local status.showUntrackedFiles no

Usage

config status
config add .myrc
config commit -m "Add myrc"
config push

About

My dotfiles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published