aboutsummaryrefslogtreecommitdiff
path: root/docker/prezto/install.zsh
blob: 9cca57eda8edbcdf3eb4b17ae83468415dd9ca06 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/zsh

set -eu

git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"

setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
  ln -nsf "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done

ln -s "${HOME}/p9k/powerlevel9k.zsh-theme" \
  "${HOME}/.zprezto/modules/prompt/functions/prompt_powerlevel9k_setup"

echo "zstyle ':prezto:module:prompt' theme 'powerlevel9k'" \
  >> "${HOME}/.zpreztorc"

# EOF