aboutsummaryrefslogtreecommitdiff
path: root/docker/zim/install.zsh
diff options
context:
space:
mode:
authorDan <2481552+opes@users.noreply.github.com>2018-04-30 21:07:55 +0300
committerGitHub <noreply@github.com>2018-04-30 21:07:55 +0300
commitfbb85e77e3dc307c21b79c655302158077fad916 (patch)
treef31b99e9fa274d247551537a694f615167895379 /docker/zim/install.zsh
parent75c6838a0dbb2fc84f2cf7d71cae9b147b04a379 (diff)
parent13b0e383a066c9c37d5cf71d4af521f9b73a173e (diff)
Merge branch 'master' into chruby_options
Diffstat (limited to 'docker/zim/install.zsh')
-rw-r--r--docker/zim/install.zsh21
1 files changed, 21 insertions, 0 deletions
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