Marty Oehme
71f9076846
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.
13 lines
589 B
Bash
13 lines
589 B
Bash
# relink all stowed files from anywhere
|
|
# grepping is to remove meaningless stderr lines until this bug is fixed:
|
|
# https://github.com/aspiers/stow/issues/65
|
|
#
|
|
# redirection is a neat way to filter stderr msgs by redirecting stderr
|
|
# to stdout in a subshell, grepping in it, and redirecting back to stderr:
|
|
# https://stackoverflow.com/a/15936384
|
|
#
|
|
# to customize this to your own needs, change the `push folder` to the
|
|
# location of your dotfiles (stow) repository
|
|
alias dotlink="pushd ~/.dotfiles;\
|
|
stow -R */ 2> >(grep -v 'Absolute/relative mismatch between Stow dir' 1>&2) ;\
|
|
popd"
|