install.sh: limit what is installed
This commit is contained in:
parent
ad2751f280
commit
9a04f3885b
28
install.sh
28
install.sh
@ -8,6 +8,30 @@ if [ -z "$STOW" ]; then
|
|||||||
STOW=./stow.sh
|
STOW=./stow.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f $HOME/.zshrc $HOME/.profile >/dev/null 2>&1
|
git submodule update --init --recursive
|
||||||
|
|
||||||
|
# if these aren't links, move them out of the way?
|
||||||
|
for f in ~/.zshrc ~/.profile; do
|
||||||
|
if [ -f $f ]; then
|
||||||
|
mv $f $f.orig
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
# rm -f $HOME/.zshrc $HOME/.profile >/dev/null 2>&1
|
||||||
|
|
||||||
|
# install all dotfiles
|
||||||
|
#find * -maxdepth 0 -type d | xargs -I{} $STOW -t "$HOME" {}
|
||||||
|
|
||||||
|
# install general dotfiles
|
||||||
|
for dir in \
|
||||||
|
git \
|
||||||
|
nvim \
|
||||||
|
sh \
|
||||||
|
ssh \
|
||||||
|
tmux \
|
||||||
|
zsh
|
||||||
|
do
|
||||||
|
$STOW -t ~/ $dir
|
||||||
|
done
|
||||||
|
|
||||||
find * -maxdepth 0 -type d | xargs -I{} $STOW -t "$HOME" {}
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user