dotfiles/README.md
2022-05-09 18:54:55 -04:00

74 lines
949 B
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`
## Cloning this repo
```bash
git clone https://github.com/lemonase/dotfiles.git
cd dotfiles/files
```
### Ubuntu/Debian
```bash
apt install stow
```
### Fedora/RHEL
```bash
dnf install stow
```
### Arch
```bash
pacman -S stow
```
### MacOS
```bash
brew install stow
```
### Installing symlinks
```bash
stow --target="$HOME" *
```
### Uninstalling symlinks
```bash
stow --delete *
```
### Repairing symlinks
```bash
stow --restow *
```
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
---