extracted from dotfiles project