diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2017-07-12 17:27:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-12 17:27:45 +0300 |
commit | 40a12d388fa7fbb73e912cedc0a6c272ede64860 (patch) | |
tree | 26c80d671d557ec7c19fb61eeea44c98d5cc1d7d /docker/zim | |
parent | c88cea7f3f9983a25616317ad475759fa99ee8a1 (diff) | |
parent | 2f808f8a4e6224478e1c9efb85c1a4b3f24df087 (diff) |
Merge pull request #567 from docwhat/pr/docker
test-in-docker: quickly test frameworks in docker
Diffstat (limited to 'docker/zim')
-rw-r--r-- | docker/zim/Dockerfile | 7 | ||||
-rw-r--r-- | docker/zim/install.zsh | 21 |
2 files changed, 28 insertions, 0 deletions
diff --git a/docker/zim/Dockerfile b/docker/zim/Dockerfile new file mode 100644 index 00000000..cfe0fc93 --- /dev/null +++ b/docker/zim/Dockerfile @@ -0,0 +1,7 @@ +ARG base +FROM p9k:${base} + +COPY docker/zim/install.zsh /tmp/ +RUN zsh /tmp/install.zsh + +COPY ./ p9k/ diff --git a/docker/zim/install.zsh b/docker/zim/install.zsh new file mode 100644 index 00000000..d6c6006a --- /dev/null +++ b/docker/zim/install.zsh @@ -0,0 +1,21 @@ +#!zsh + +git clone --recursive https://github.com/Eriner/zim.git "${ZDOTDIR:-${HOME}}/.zim" + +setopt EXTENDED_GLOB +for template_file ( ${ZDOTDIR:-${HOME}}/.zim/templates/* ); do + user_file="${ZDOTDIR:-${HOME}}/.${template_file:t}" + touch ${user_file} + ( print -rn "$(<${template_file})$(<${user_file})" >! ${user_file} ) 2>/dev/null +done + +source "${ZDOTDIR:-${HOME}}/.zlogin" + +ln -nsf \ + ~/p9k/ \ + ~/.zim/modules/prompt/external-themes/powerlevel9k +ln -nsf \ + ~/.zim/modules/prompt/external-themes/powerlevel9k/powerlevel9k.zsh-theme \ + ~/.zim/modules/prompt/functions/prompt_powerlevel9k_setup + +sed -i "s/zprompt_theme='steeef'/zprompt_theme='powerlevel9k'/g" ~/.zimrc |