Use stow for managing dotfiles

This commit is contained in:
Oliver Davies 2021-07-10 22:20:50 +01:00
parent 7b29ee2104
commit 7fed1cf922
83 changed files with 61 additions and 40 deletions

View file

@ -5,23 +5,7 @@ My personal dotfiles, originally for macOS only but currently being adapted for
## Installation
```
git clone --bare git@github.com:opdavies/dotfiles.git $HOME/dotfiles
git --git-dir $HOME/dotfiles --work-tree $HOME checkout
git --git-dir $HOME/dotfiles --work-tree $HOME config status.showUntrackedFiles no
```
### Adding a `config` alias
You can also set a `config` alias as a wrapper for the Git command, as described within [Atlassian's blog post](https://www.atlassian.com/git/tutorials/dotfiles):
alias config="git --git-dir $HOME/dotfiles --work-tree $HOME"
### Adding new files
```
config add /path/to/file
config commit -m "Some commit message"
config push
stow alactritty bin composer dconf git tmux vim zsh
```
## Inspiration