aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2018-07-12 01:16:10 +0300
committerChristian Höltje <docwhat@gerf.org>2018-07-12 21:19:36 +0300
commit4178240b2493115641c8cd204266e6d3d593af6b (patch)
tree1b3e681bc80f845e0afcdf6f02a7a09c509f3718
parent0b92e915c49a80a670307e84a828c5b89885928d (diff)
Add Dockerfile for zshing framework
-rw-r--r--docker/zshing/Dockerfile7
-rw-r--r--docker/zshing/install.zsh16
2 files changed, 23 insertions, 0 deletions
diff --git a/docker/zshing/Dockerfile b/docker/zshing/Dockerfile
new file mode 100644
index 00000000..a51a3067
--- /dev/null
+++ b/docker/zshing/Dockerfile
@@ -0,0 +1,7 @@
+ARG base
+FROM p9k:${base}
+
+COPY docker/zshing/install.zsh /tmp/
+RUN zsh /tmp/install.zsh
+
+COPY ./ p9k/
diff --git a/docker/zshing/install.zsh b/docker/zshing/install.zsh
new file mode 100644
index 00000000..8f926992
--- /dev/null
+++ b/docker/zshing/install.zsh
@@ -0,0 +1,16 @@
+#!zsh
+
+# install zshing https://github.com/zakariaGatter/zshing
+git clone https://github.com/zakariaGatter/zshing.git ~/.zshing/zshing
+
+# Link P9K in zshing directory
+ln -nsf ~/p9k ~/.zshing/powerlevel9k
+
+{
+ echo
+ echo 'ZSHING_PLUGINS=(
+ "bhilburn/powerlevel9k"
+ )'
+ echo
+ echo "source ~/.zshing/zshing/zshing.zsh"
+} >> ~/.zshrc