dotfiles/README.md
2022-05-10 20:03:49 -04:00

81 lines
1.0 KiB
Markdown

# My dotfiles
I am using [GNU Stow](https://www.gnu.org/software/stow/) to symlink
my dotfiles to their correct locations in my `$HOME` directory.
## Installing `stow`
### Ubuntu/Debian
```bash
apt install stow
```
### Fedora/RHEL
```bash
dnf install stow
```
### Arch
```bash
pacman -S stow
```
### MacOS
```bash
brew install stow
```
## Cloning this repo
```bash
git clone https://github.com/lemonase/dotfiles.git && cd dotfiles/config
```
## Using `stow`
### Installing all symlinks
```bash
stow -t "$HOME" -S *
```
### Uninstalling all symlinks
```bash
stow -t "$HOME" -D *
```
### Repairing all symlinks
```bash
stow -t "$HOME" -R *
```
### Installing specific dotfiles
```bash
stow -t "$HOME" -S git
```
If there are no errors, everything in that directory should be symlinked.
Check by doing a quick `ls -al ~/`
## Troubleshooting
### Error: File conflicts
```
WARNING! stowing git would cause conflicts:
* existing target is neither a link nor a directory: .gitconfig
```
### Solution
Delete or move file in question
---