Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/datwaft/dotfiles
My dotfiles
https://github.com/datwaft/dotfiles
dotfiles
Last synced: 2 months ago
JSON representation
My dotfiles
- Host: GitHub
- URL: https://github.com/datwaft/dotfiles
- Owner: datwaft
- Created: 2020-06-29T00:17:33.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-27T17:59:27.000Z (3 months ago)
- Last Synced: 2024-10-27T21:23:57.837Z (3 months ago)
- Topics: dotfiles
- Language: Shell
- Homepage:
- Size: 539 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Please read this
The way this repository uses for storing my dotfiles is with a _bare_ repository. This makes it easy to clone, and it doesn't need to use system links.
> The technique consists in storing a Git bare repository in a "side" folder (like `$HOME/.cfg` or `$HOME/.myconfig`) using a specially crafted alias so that commands are run against that repository and not the usual `.git` local folder, which would interfere with any other Git repositories around.
## FAQ (Frequently Asked Questions)
### What are the prerequisites for this?
Install `git`.
> [!WARNING]
> If you install `git` using `brew` you will break completion.### How do I import the dotfiles?
Use this command:
```sh
git clone --bare [email protected]:datwaft/dotfiles.git $HOME/.dotfiles
```> This will clone the contents of the remote repository (the .git link) to the home directory (~) while referencing ~/.dotfiles as the local bare repository (the `—seperate-git-dir` part).
After that add the alias to the current shell scope:
```sh
alias .git='git --git-dir ~/.dotfiles --work-tree ~'
```And after that do a checkout to add the files to the home directory:
```sh
.git checkout
```> [!WARNING]
> Your home directory shouldn't contain any of the dotfiles present inside the directory.### Where did you get the information for using your dotfiles like this?
Here:
And Here: