From df318488c9bad0fae2e38c8fd57afaade295f135 Mon Sep 17 00:00:00 2001 From: Christian Höltje Date: Mon, 10 Jul 2017 18:39:55 -0400 Subject: 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. --- docker/prezto/Dockerfile | 6 ++++++ docker/prezto/install.zsh | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 docker/prezto/Dockerfile create mode 100644 docker/prezto/install.zsh (limited to 'docker/prezto') diff --git a/docker/prezto/Dockerfile b/docker/prezto/Dockerfile new file mode 100644 index 00000000..389dbd0a --- /dev/null +++ b/docker/prezto/Dockerfile @@ -0,0 +1,6 @@ +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 -- cgit v1.2.3