https://github.com/8dcc/dotfiles
My personal dotfiles
https://github.com/8dcc/dotfiles
dotfiles dotfiles-linux dotfiles-windows
Last synced: 4 months ago
JSON representation
My personal dotfiles
- Host: GitHub
- URL: https://github.com/8dcc/dotfiles
- Owner: 8dcc
- License: mit
- Created: 2022-04-09T15:59:51.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-18T15:00:15.000Z (over 1 year ago)
- Last Synced: 2025-02-23T12:14:31.732Z (4 months ago)
- Topics: dotfiles, dotfiles-linux, dotfiles-windows
- Language: Python
- Homepage:
- Size: 49.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Personal dotfiles
**My personal dotfiles**### Cloning
Because this repository has [submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules), you need to specify a parameter to the git clone command ([?](http://git-scm.com/book/en/v2/Git-Tools-Submodules#_cloning_submodules)):
```bash
git clone --recurse-submodules https://github.com/8dcc/dotfiles
```
Check [SUBMODULES.md](https://github.com/8dcc/dotfiles/blob/main/SUBMODULES.md) for more info.### Pulling the repositories
Once you have them downloaded, there might be changes to the submodules! And if you do a `git pull` on the dotfiles repository, you will not pull the submodules.
To do this, use the `git submodules` command:
```bash
git submodule update --init --recursive # Git command
```
You can also check [scripts](#scripts) for more information on how to do all of this more easily.### Scripts
#### Python
Before using the python scripts make sure you have all the requirements installed with:
```bash
cd scripts/python
python3 -m pip install -r requirements.txt
```
The `pull-dotfiles.py` script you will pull all the latest commits from the origin of each submodule.
To use it once you installed the requirements:
```bash
cd scripts/python
python3 pull-dotfiles.py
```
#### Bash
In my opinion the best way to automate all of the above (Although not as fancy and elavorated as the python way) is to use my `sync-dotfiles.sh` script.
Even if you did not use `--recurse-submodules` when cloning, you can use my bash script to:
- Start and get the submodules (Commit saved in the main repo)
- Doing checkout to the correct branches (main)
- Pulling all the submodules from origin/mainTo use this script:
```bash
cd scripts
chmod +x sync-dotfiles.sh
./sync-dotfiles.sh
```