My Dotfiles <3
Go to file
2024-09-09 16:48:46 +01:00
.config Added fish colors 2024-08-25 20:54:52 +01:00
.local Added .local/share/fonts 2024-08-20 18:25:32 +01:00
.gtkrc-2.0 Updated gtk2 2024-09-09 16:48:46 +01:00
.makepkg.conf Added .makefile.conf 2024-08-20 19:35:37 +01:00
LICENSE Update Dotfiles 2022-08-16 15:49:40 +01:00
README.md Updated README 2024-08-19 16:51:26 +01:00

HeCodes2Much's Dotfiles

Arch logo


Arch / Linux / AUR

⚠️ WARNING ⚠️
It worked perfectly on my machine, but I can't guarantee it will work on your machine
Powered by Arch/Linux x86_64

Getting Started

To clone and manage your dotfiles using a bare Git repository, follow these steps:

1. Clone the Repository

Clone the repository into a dotfiles directory in your home directory:

git clone --bare git@github.com:HeCodes2Much/DotFiles_PacmanBase.git $HOME/.dotfiles

2. Define an Alias

Define an alias to simplify Git commands for managing your dotfiles:

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

3. Checkout the Repository

Checkout the actual content from the repository to your home directory:

dotfiles checkout

If you encounter errors because some files already exist, back them up or remove them before retrying the checkout command.

4. Configure Git to Ignore Untracked Files

Configure the repository to not show untracked files to keep your home directory clean:

dotfiles config --local status.showUntrackedFiles no

Usage

With the alias defined, you can now manage your dotfiles using standard Git commands prefixed with dotfiles.

Examples:

  • Add a file:

    dotfiles add .vimrc
    
  • Commit changes:

    dotfiles commit -m "Add vim configuration"
    
  • Push changes:

    dotfiles push
    
  • Pull changes:

    dotfiles pull
    

Customization

You can customize this setup to include additional files or directories by adding them to the repository and committing the changes.

Backup and Restore

To backup your dotfiles, simply push your changes to the remote repository. To restore them on a new machine, follow the cloning and checkout steps above.

Additional Resources

License

This repository is licensed under the MIT License. See the LICENSE file for more information.