summaryrefslogtreecommitdiff
path: root/docker/zplugin
diff options
context:
space:
mode:
authorChristian Höltje <docwhat@gerf.org>2017-07-11 01:39:55 +0300
committerChristian Höltje <docwhat@gerf.org>2017-07-12 03:41:46 +0300
commitdf318488c9bad0fae2e38c8fd57afaade295f135 (patch)
tree1580a46f9edfe65e33e4757be77ceb34acbf83fd /docker/zplugin
parent3c3a86a42f6299f8ccc9af27b4cb03467cb28927 (diff)
test-in-docker: quickly test frameworks in docker
This adds `./test-in-docker` for quickly playing with various frameworks. All the containers are based off Ubuntu 14.04 which has ZSH 5.0.2. Thanks to @dritter for figuring out all the framework installation methods.
Diffstat (limited to 'docker/zplugin')
-rw-r--r--docker/zplugin/Dockerfile7
-rw-r--r--docker/zplugin/install.zsh12
-rw-r--r--docker/zplugin/zshrc.plugins5
3 files changed, 24 insertions, 0 deletions
diff --git a/docker/zplugin/Dockerfile b/docker/zplugin/Dockerfile
new file mode 100644
index 00000000..dc723606
--- /dev/null
+++ b/docker/zplugin/Dockerfile
@@ -0,0 +1,7 @@
+FROM p9k:base
+
+COPY docker/zplugin/install.zsh /tmp/
+RUN zsh /tmp/install.zsh
+
+COPY ./ p9k/
+COPY docker/zplugin/zshrc.plugins .zshrc.plugins
diff --git a/docker/zplugin/install.zsh b/docker/zplugin/install.zsh
new file mode 100644
index 00000000..fec4249d
--- /dev/null
+++ b/docker/zplugin/install.zsh
@@ -0,0 +1,12 @@
+sh -c "$(curl -fsSL https://raw.githubusercontent.com/psprint/zplugin/master/doc/install.sh)"
+
+# The 'zplugin snippet' only copies the .zsh-theme file, not everything else.
+mkdir -p ~/.zplugin/snippets
+ln -nsf \
+ ~/p9k/ \
+~/.zplugin/snippets/--SLASH--home--SLASH--fred--SLASH--p9k--SLASH--powerlevel9k--DOT--zsh-theme
+
+{
+ echo
+ echo "source ~/.zshrc.plugins"
+} >> ~/.zshrc
diff --git a/docker/zplugin/zshrc.plugins b/docker/zplugin/zshrc.plugins
new file mode 100644
index 00000000..2e9ba7a3
--- /dev/null
+++ b/docker/zplugin/zshrc.plugins
@@ -0,0 +1,5 @@
+#!zsh
+
+zplugin load psprint zsh-navigation-tools
+zplugin load psprint---zprompts
+zplugin snippet ~/p9k/powerlevel9k.zsh-theme