Skip to content

Instantly share code, notes, and snippets.

@gtramontina
Created September 4, 2014 06:52
Show Gist options
  • Save gtramontina/78c41be1077f1811fe47 to your computer and use it in GitHub Desktop.
Save gtramontina/78c41be1077f1811fe47 to your computer and use it in GitHub Desktop.
Install Prezto
fancy_echo "Installing Prezto – Instantly Awesome Zsh…"
git_clone_or_pull 'https://github.com/sorin-ionescu/prezto.git' "${ZDOTDIR:-$HOME}/.zprezto"
TMP_RC_FILE=$(mktemp -t rcfile); cat << EOF > $TMP_RC_FILE
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
ln -f -s "\$rcfile" "\${ZDOTDIR:-$HOME}/.\${rcfile:t}"
done
rm -f $TMP_RC_FILE
EOF
zsh --rcs $TMP_RC_FILE
unset TMP_RC_FILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment