https://github.com/skalt/dot
The start of your dotfiles!
https://github.com/skalt/dot
dotfiles shell
Last synced: about 2 months ago
JSON representation
The start of your dotfiles!
- Host: GitHub
- URL: https://github.com/skalt/dot
- Owner: SKalt
- License: bsd-3-clause
- Created: 2021-10-31T18:12:31.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-11T01:52:51.000Z (over 1 year ago)
- Last Synced: 2025-04-01T22:33:42.912Z (over 1 year ago)
- Topics: dotfiles, shell
- Language: Shell
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dot
The start of your dotfiles: an easy setup script for managing your entire `$HOME` directory using `git`.
## Usage
1. read [`./dotfiles_init.sh`](./dotfiles_init.sh) carefully
2. download it with
```sh
target_file="/tmp/dotfiles_init.sh"
url=https://raw.githubusercontent.com/SKalt/dot/main/dotfiles_init.sh
curl -Lo "$target_file" "$url"
# `-L` means follow redirects
# `-o "$target_file"` where to put the download
# check you're getting what you expected:
shasum -a 256 "$target_file"
# should print 70af2e23b654eec050d831e6385c3fcf92cdf2b2102813e13cdbc4f8641f7939 /tmp/dotfiles_init.sh
```
3. run the setup script with
```sh
chmod +x /tmp/dotfiles_init.sh
/tmp/dotfiles_init.sh
```
4. Manage your home directory as a bare git directory, using `dotfiles` as an alias for `git`
5. When you want to set up a new machine with your existing dotfiles:
```sh
# make sure you've moved all pre-existing dotfiles to other backup locations.
# For example, you might`mv ~/.bashrc ~/.bashrc.bak`
dotfiles_git_dir="${dotfiles_git_dir:-$HOME/.dotfiles.git}"
git clone --bare "$your_dotfiles_repo" "$dotfiles_git_dir"
alias dotfiles="git --git-dir=\"$dotfiles_git_dir\" --work-tree=\"$HOME\""
dotfiles config core.excludesFile "$HOME/.dotfiles/dotfiles_exclude"
dotfiles checkout
```