2018-04-01 18:06:48 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
source ./.versions
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo "Installing pure-prompt for ZSH..."
|
|
|
|
echo
|
|
|
|
|
2018-04-02 11:08:50 +08:00
|
|
|
mkdir ~/.zfunctions
|
|
|
|
curl -fLo ~/.zfunctions/prompt_pure_setup https://raw.githubusercontent.com/sindresorhus/pure/master/pure.zsh
|
|
|
|
curl -fLo ~/.zfunctions/async https://raw.githubusercontent.com/sindresorhus/pure/master/async.zsh
|
|
|
|
|
|
|
|
echo '# pure' >> ~/.zshrc
|
|
|
|
echo 'fpath=( "$HOME/.zfunctions" $fpath )' >> ~/.zshrc
|
|
|
|
echo 'autoload -U promptinit; promptinit' >> ~/.zshrc
|
|
|
|
echo 'prompt pure' >> ~/.zshrc
|
|
|
|
|