Skip to content

AltairShmily/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Altari's Dotfiles Repository

How to use this repositories

  • commit the alias to your .bashrc or .zshrc
    alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
  • your source repository ignores the folder where you'll clone it
    echo ".dotfiles" >> .gitignore
  • clone dotfiles into a bare repository in a "dot" folder of your '$HOME'
    git clone --bare https://github.com/AltairShmily/dotfiles.git $HOME/.dotfiles
  • define the alias in the current shell scope
    alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
  • checkout the actual content from the bare repository to your '$HOME'
    config checkout
  • set the flag 'showUntrackedFiles' to 'no' on this local repository
    config config --local status.showUntrackedFiles no
  • now you can type 'config' commands to add and update the dotfiles
    config status
    config add .zshrc
    config commit -m "Add zshrc"
    config add .bashrc
    config commit -m "Add bashrc"
    config push --set-upstream origin main 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published