dotfiles/install-prezto
2015-10-04 23:49:57 +02:00

20 lines
393 B
Bash
Executable File

#!/usr/bin/env zsh
echo "Installing prezto"
if [ -z "$ZDOTDIR" ]; then
echo "ZDOTDIR not set."
exit 1
fi
mkdir -p $ZDOTDIR
git clone --recursive https://maxwell.ydns.eu:44333/fazo96/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
echo "Done"