aboutsummaryrefslogtreecommitdiff
path: root/docker/zgen
diff options
context:
space:
mode:
Diffstat (limited to 'docker/zgen')
-rw-r--r--docker/zgen/Dockerfile7
-rw-r--r--docker/zgen/install.zsh5
-rw-r--r--docker/zgen/zshrc10
3 files changed, 22 insertions, 0 deletions
diff --git a/docker/zgen/Dockerfile b/docker/zgen/Dockerfile
new file mode 100644
index 00000000..9a0c13c7
--- /dev/null
+++ b/docker/zgen/Dockerfile
@@ -0,0 +1,7 @@
+FROM p9k:base
+
+COPY docker/zgen/install.zsh /tmp/
+RUN zsh /tmp/install.zsh
+
+COPY ./ p9k/
+COPY docker/zgen/zshrc .zshrc
diff --git a/docker/zgen/install.zsh b/docker/zgen/install.zsh
new file mode 100644
index 00000000..5cdc6181
--- /dev/null
+++ b/docker/zgen/install.zsh
@@ -0,0 +1,5 @@
+#!/bin/zsh
+
+git clone https://github.com/tarjoilija/zgen.git "${HOME}/.zgen"
+
+# EOF
diff --git a/docker/zgen/zshrc b/docker/zgen/zshrc
new file mode 100644
index 00000000..1fcb75b9
--- /dev/null
+++ b/docker/zgen/zshrc
@@ -0,0 +1,10 @@
+# load zgen
+source ~/.zgen/zgen.zsh
+
+# if the init scipt doesn't exist
+if ! zgen saved; then
+ zgen load ~/p9k/powerlevel9k.zsh-theme
+
+ # generate the init script from plugins above
+ zgen save
+fi