Skip to content

DavonMoss/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Current environment:
    tmux
    vim (with clipboard compiled in)
    alacritty

#Using the HN method to manage the git repositories locally on each computer:

#Creating them if they don't already exist:
    git init --bare $HOME/.myconf
    alias dotfile_config='/usr/bin/git --git-dir=$HOME/.myconf/ --work-tree=$HOME'
    dotfile_config config status.showUntrackedFiles no

#Managing the repository like normal, just using the alias name instead of 'git':
    dotfile_config status
    dotfile_config add .vimrc
    dotfile_config commit -m "Add vimrc"
    dotfile_config add .config/redshift.conf
    dotfile_config commit -m "Add redshift config"
    dotfile_config push

#Setting up the remote link between local repository and this one, and pushing for the first time:
    dotfile_config remote add origin https://davonmoss:<pat token>@github.com/DavonMoss/dotfiles.git
    dotfile_config push -u origin main

#Pulling the dotfiles down to new machine
    dotfile_config pull origin main

About

all my configs yay woohoo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published