2015-08-25 11:42:45 +02:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
|
|
|
echo "Installing prezto"
|
|
|
|
|
2015-10-04 23:49:57 +02:00
|
|
|
if [ -z "$ZDOTDIR" ]; then
|
|
|
|
echo "ZDOTDIR not set."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2015-08-25 11:42:45 +02:00
|
|
|
mkdir -p $ZDOTDIR
|
|
|
|
|
2015-10-09 13:02:30 +02:00
|
|
|
git -c http.sslVerify=false clone --recursive https://maxwell.ydns.eu:44333/fazo96/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
|
2015-08-25 11:42:45 +02:00
|
|
|
|
|
|
|
setopt EXTENDED_GLOB
|
|
|
|
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
|
|
|
|
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
|
|
|
|
done
|
|
|
|
|
|
|
|
echo "Done"
|