Commit graph

2 commits

Author SHA1 Message Date
Marty Oehme 370c155ca4
Standardize top-level directory paths
Anything which needs to be (at least partly) touched by stow should stay
in the top-level normal directory name that they are. Anything that
*only* concerns the repository, not the dotfiles, should be moved into a
hidden folder, preceded by a dot.

These directories should still contain a `.stow-local-ignore` file
patterning everything which should not show up in stow (i.e. `^/.*`,
everything) since it is not guaranteed that stow will ignore the
.dotfile directories. The installation script does ignore them on its
own, for now, but is not guaranteed to in the future either.
2020-02-07 22:41:30 +01:00
Marty Oehme 71f9076846 Change bootstrap to use standard stow functions
Removed the `autostow.sh` scipt. Its use was to call stow for every
folder in base directory and ignore certain folders. Both those
functions can be handled by stow on its own.

Stow allows defining per-directory ignore patterns with
`.stow-loca-ignore` files, which can be set to `.*` to completely ignore
a folder, just as before. And Stow can be called with a glob pattern to
automatically call it for every directory in the repository.

`.stowrc` additionally makes sure that all operations take place
targeting the home directory of the current user, since that is where
the dotfiles will (generally) be stored. Of course, this can be
overridden with the stow command-line options (see option precedence in
stow manual).

Finally, the bootstrap stow module adds an alias `dotlink` to the shell,
which allows fast (re-)stowing of all directories in the dotfile
repository. It uses a hard-coded location for the .dotfiles base
directory, so if the dotfiles are cloned anywhere else this has to be
customized.
2020-02-06 12:48:08 +01:00