Dotlink now takes arbitrary arguments which it all simply passes through to dotter underneath. Also made the directory changing a little more flexible.
17 lines
582 B
Bash
17 lines
582 B
Bash
#!/usr/bin/env 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
|
|
|
|
dotlink() {
|
|
cd ~/.dotfiles || return
|
|
dotter "${@:-deploy}"
|
|
cd "$OLDPWD" || return
|
|
}
|