https://github.com/iarekylew00t/dotfiles
🗂️ My version controlled dotfiles!
https://github.com/iarekylew00t/dotfiles
bash dotfiles linux wsl2 zsh
Last synced: about 1 month ago
JSON representation
🗂️ My version controlled dotfiles!
- Host: GitHub
- URL: https://github.com/iarekylew00t/dotfiles
- Owner: IAreKyleW00t
- License: mit
- Created: 2023-02-25T01:07:29.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-02T20:24:19.000Z (8 months ago)
- Last Synced: 2025-02-06T11:56:42.065Z (3 months ago)
- Topics: bash, dotfiles, linux, wsl2, zsh
- Language: Shell
- Homepage: https://github.com/IAreKyleW00t/dotfiles
- Size: 41 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🗂️ dotfiles
This is a very basic repo for managing and tracking my `dotfiles` using plain 'ol [git](https://git-scm.com/).
Feel free to use this repo as a reference/example for creating your own dotfiles.I'll probably move to something like [yadm](https://yadm.io/) to more easily handle [alterate files](https://yadm.io/docs/alternates) and [bootstrapping](https://yadm.io/docs/bootstrap).
## Installation
For ease of use, we'll create a `dotfiles` alias for the `git` command.
```sh
alias dotfiles='git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME"'
```### First-time setup
If you are settings up `dotfiles` for the **first time**, meaning you have NOT set it up on any other computer, then you need to create the initial repo.
```sh
git init --bare "$HOME/.dotfiles"
dotfiles config --local status.showUntrackedFiles no
```### Normal Setup
If you've already setup a repo with your configs and are setting up a new computer, you can do the same things except clone the repo instead.
```sh
git clone --bare "$HOME/.dotfiles"
dotfiles checkout
dotfiles config --local status.showUntrackedFiles no
```## Usage
Since this is just a fancy `git` alias the usage is exactly the same except you must explicitly add new configs that need tracked.
```sh
dotfiles add .gitconfig
dotfiles commit -m "An example"
dotfiles push
```## License
See [LICENSE](LICENSE).
## Credits
- [Dotfiles: Best Way to Store in a Bare Git Repository](https://www.atlassian.com/git/tutorials/dotfiles) by Atlassian