mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-12-04 21:56:46 +01:00
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.
This commit is contained in:
parent
3c3a86a42f
commit
df318488c9
33 changed files with 336 additions and 3 deletions
21
docker/zim/install.zsh
Normal file
21
docker/zim/install.zsh
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue