Skip to content

hfgpkjo\hjfgk\pdxjhopfgkjkifgjopfthjkigjk,fgj;khgp'fkhogfdkfgjfgjdgfjhgfjghfk

Notifications You must be signed in to change notification settings

treuks/.dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

blahblahblah whatever man you know what dotfiles are

shamefullesly stolen from fr3fou/dotfiles

Usage:

Create a bare repo

$ git init --bare $HOME/.dotfiles

Create an alias

$ alias dots='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'

Add to upstream

$ dots remote add origin [email protected]:treuks/.dotfiles.git

Alias some stuff

dots config status.showUntrackedFiles no

dots config alias.untracked "status -u ."
dots config alias.untracked-at "status -u"

Usage-er

# Use the dots alias like you would use the git command
dots status
dots add --update ...
dots commit -m "..."
dots push

# Listing files (not tracked by git)
dots untracked
dots status -u .config/

# Listing files (tracked by git)
dots ls-files
dots ls-files .config/fontconfig/

Installing on current setup

TODO: Replace this with a script

git clone --recursive --separate-git-dir=$HOME/.dotfiles [email protected]:treuks/.dotfiles.git /tmp/dotfiles
rsync -rvl --exclude ".git" /tmp/dotfiles/ $HOME/
rm -r /tmp/dotfiles
dots submodule update --init --recursive $HOME/

About

hfgpkjo\hjfgk\pdxjhopfgkjkifgjopfthjkigjk,fgj;khgp'fkhogfdkfgjfgjdgfjhgfjghfk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published