Skip to content
grishatop1Public

About

my dotfiles for sway, waybar and so on

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

34 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

my dotfiles

creation

# 1. Init a bare repo
git init --bare ~/.dotfiles

# 2. Add the alias to your shell rc (.bashrc / .zshrc / etc.)
echo "alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'" >> ~/.bashrc
source ~/.bashrc

# 3. Hide untracked files (so `dotfiles status` isn't noisy)
dotfiles config --local status.showUntrackedFiles no

restore on another machine

git clone --bare git@github.com:grishatop1/dotfiles.git ~/.dotfiles
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
dotfiles checkout   # restores all tracked files to their original paths
dotfiles config --local status.showUntrackedFiles no

tips

don't dotfiles add . - it will add EVERYTHING instead do dotfiles add -u - it will stage only tracked files

About

my dotfiles for sway, waybar and so on

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages