aboutsummaryrefslogtreecommitdiff
path: root/docker/prezto/install.zsh
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@gmail.com>2017-07-12 17:27:45 +0300
committerGitHub <noreply@github.com>2017-07-12 17:27:45 +0300
commit40a12d388fa7fbb73e912cedc0a6c272ede64860 (patch)
tree26c80d671d557ec7c19fb61eeea44c98d5cc1d7d /docker/prezto/install.zsh
parentc88cea7f3f9983a25616317ad475759fa99ee8a1 (diff)
parent2f808f8a4e6224478e1c9efb85c1a4b3f24df087 (diff)
Merge pull request #567 from docwhat/pr/docker
test-in-docker: quickly test frameworks in docker
Diffstat (limited to 'docker/prezto/install.zsh')
-rw-r--r--docker/prezto/install.zsh18
1 files changed, 18 insertions, 0 deletions
diff --git a/docker/prezto/install.zsh b/docker/prezto/install.zsh
new file mode 100644
index 00000000..9cca57ed
--- /dev/null
+++ b/docker/prezto/install.zsh
@@ -0,0 +1,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