https://github.com/laetho/.dotfiles
My . files.
https://github.com/laetho/.dotfiles
Last synced: 14 days ago
JSON representation
My . files.
- Host: GitHub
- URL: https://github.com/laetho/.dotfiles
- Owner: laetho
- Created: 2024-08-31T19:28:28.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2026-04-26T08:21:11.000Z (3 months ago)
- Last Synced: 2026-04-26T10:14:51.253Z (3 months ago)
- Language: Lua
- Size: 184 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dotfiles
> Adapted from https://github.com/Siilwyn/my-dotfiles
## Initial setup on "source" computer
```sh
git init --bare $HOME/.dotfiles
alias dotfiles='git --git-dir=$HOME/.my-dotfiles/ --work-tree=$HOME'
dotfiles remote add origin git@github.com:laetho/.dotfiles.git
dotfiles config status.showUntrackedFiles no
dotfiles remote set-url origin git@github.com:laetho/.dotfiles.git
```
## Steps for setting up on another computer
Use this steps to set up the dotfiles repo on a new machine.
```sh
git clone --separate-git-dir=$HOME/.dotfiles https://github.com/laetho/.dotfiles.git dotfiles-tmp
rsync --recursive --verbose --exclude '.git' dotfiles-tmp/ $HOME/
rm --recursive dotfiles-tmp
alias dotfiles='git --git-dir=$HOME/.my-dotfiles/ --work-tree=$HOME'
dotfiles config status.showUntrackedFiles no
```
## Usage
```sh
dotfiles status
dotfiles add .gitconfig
dotfiles commit -m 'Add gitconfig'
dotfiles push
```