diff --git a/.stowrc b/.stowrc new file mode 100644 index 0000000..a562c55 --- /dev/null +++ b/.stowrc @@ -0,0 +1,3 @@ +--target=~ +--ignore=\.stowrc +--ignore=mimeapps\.list diff --git a/README.md b/README.md index 96bf7ed..cab61dc 100644 --- a/README.md +++ b/README.md @@ -1 +1,12 @@ # dotfiles + +```sh +git clone https://git.tahinli.com/Tahinli/dotfiles ~/dotfiles +cd ~/dotfiles && stow . +ln -sfn ~/dotfiles/.config/mimeapps.list ~/.config/mimeapps.list +``` + +`mimeapps.list` is linked by hand with an absolute path, and `.stowrc` keeps +stow away from it. GLib resolves a relative symlink target against the +writing process's working directory, so stow's `../dotfiles/...` link made +every "set default app" fail outside `~/.config`.