summaryrefslogtreecommitdiff
path: root/docker/prezto
diff options
context:
space:
mode:
Diffstat (limited to 'docker/prezto')
-rw-r--r--docker/prezto/Dockerfile7
-rw-r--r--docker/prezto/install.zsh18
2 files changed, 25 insertions, 0 deletions
diff --git a/docker/prezto/Dockerfile b/docker/prezto/Dockerfile
new file mode 100644
index 00000000..70f3b65d
--- /dev/null
+++ b/docker/prezto/Dockerfile
@@ -0,0 +1,7 @@
+ARG base
+FROM p9k:${base}
+
+COPY docker/prezto/install.zsh /tmp/
+RUN zsh /tmp/install.zsh
+
+COPY ./ p9k/
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