use gnu stow if available
This commit is contained in:
parent
769eb04bfb
commit
511a462290
10
install.sh
10
install.sh
@ -3,5 +3,11 @@
|
||||
# Install my dotfiles.
|
||||
#
|
||||
|
||||
rm $HOME/.zshrc $HOME/.profile
|
||||
find * -maxdepth 0 -type d | xargs -I{} ./stow.sh -t $HOME {}
|
||||
STOW=$(which stow)
|
||||
if [ -z "$STOW" ]; then
|
||||
STOW=./stow.sh
|
||||
fi
|
||||
|
||||
rm -f $HOME/.zshrc $HOME/.profile >/dev/null 2>&1
|
||||
|
||||
find * -maxdepth 0 -type d | xargs -I{} $STOW -t "$HOME" {}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user