From a50a336b64f6007cf99544c1ae62a4b359174783 Mon Sep 17 00:00:00 2001 From: Eric Nielsen Date: Tue, 7 Jan 2020 16:53:25 -0500 Subject: [PATCH 1/2] Add Zim installation instructions to README.md (#411) add zim installation instructions --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 139ff64e..0b9f34e0 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ it will generate the same prompt. 1. [Manual](#manual) 1. [Oh My Zsh](#oh-my-zsh) 1. [Prezto](#prezto) + 1. [Zim](#zim) 1. [Antigen](#antigen) 1. [Zplug](#zplug) 1. [Zgen](#zgen) @@ -73,6 +74,10 @@ Set `ZSH_THEME=powerlevel10k/powerlevel10k` in your `~/.zshrc`. Add `zstyle :prezto:module:prompt theme powerlevel10k` to your `~/.zpreztorc`. +### Zim + +Add `zmodule romkatv/powerlevel10k` to your `.zimrc` and run `zimfw install`. + ### Antigen Add `antigen theme romkatv/powerlevel10k` to your `~/.zshrc`. Make sure you have `antigen apply` From 974529b642d609d59d246c68acc02c4b54c13488 Mon Sep 17 00:00:00 2001 From: romkatv Date: Sun, 12 Jan 2020 11:36:00 +0100 Subject: [PATCH 2/2] add faq about changing colors --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 0b9f34e0..436b5fbf 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ it will generate the same prompt. 1. [What do different symbols in Git status mean?](#what-do-different-symbols-in-git-status-mean) 1. [How do I change the format of Git status?](#how-do-i-change-the-format-of-git-status) 1. [How do I add username and/or hostname to prompt?](#how-do-i-add-username-andor-hostname-to-prompt) + 1. [How do I change colors?](#how-do-i-change-colors) 1. [Why does Powerlevel10k spawn extra processes?](#why-does-powerlevel10k-spawn-extra-processes) 1. [Are there configuration options that make Powerlevel10k slow?](#are-there-configuration-options-that-make-powerlevel10k-slow) 1. [Is Powerlevel10k fast to load?](#is-powerlevel10k-fast-to-load) @@ -484,6 +485,19 @@ adjusting the values of parameters nearby. There are plenty of comments to help Finally, you can move `context` segment to where you want it to be in your prompt. Perhaps somewhere within `POWERLEVEL9K_LEFT_PROMPT_ELEMENTS`. +### How do I change colors? + +Open `~/.p10k.zsh`, search for "color", "foreground" and "background" and change values of +appropriate parameters. Colors are specified using numbers from 0 to 255. Colors from 0 to 15 look +differently in different terminals. Many terminals also support customization of these colors +through color schemes or themes. Colors from 16 to 255 always look the same. + +To see how different colors look in your terminal, run the following command: + +```zsh +for i in {0..255}; do print -Pn "%${i}F${(l:3::0:)i}%f " ${${(M)$((i%8)):#7}:+$'\n'}; done +``` + ### Why does Powerlevel10k spawn extra processes? Powerlevel10k uses [gitstatus](https://github.com/romkatv/gitstatus) as the backend behind `vcs`