Coder Social home page Coder Social logo

powerlevel10k's People

Contributors

alexarawu avatar alkindi42 avatar anion155 avatar belak avatar bhilburn avatar brettm12345 avatar cybershoe avatar docwhat avatar dritter avatar dualscyther avatar eviltak avatar guixxx avatar iilonmasc avatar jkoelndorfer avatar kayant avatar krischer avatar niklas-heer avatar nmaggioni avatar onaforeignshore avatar rjorgenson avatar rmad17 avatar romkatv avatar syphdias avatar sys-lectern avatar tippl avatar v1rgul avatar wadkar avatar weirdgiraffe avatar ytang avatar zikes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

powerlevel10k's Issues

Gitstatus dying on Godot repo

Gitstatus seems to be dying on the 3.1 branch of the Godot repo, after building godot.x11.opt.tools.64. I get the following message in dmesg when it happens:

[Sun Apr 7 18:33:09 2019] traps: gitstatusd-linu[17029] general protection fault ip:5616ea234f32 sp:7fff3f336890 error:0 in gitstatusd-linux-x86_64[5616ea200000+20a000]

I've put a copy of the repo here, to see if you can replicate it:

https://drive.google.com/open?id=1utiZyxuxkK9PDu5Y3RWxEybxO7kAOp7W

_p9k_should_join_right:1: bad math expression: empty string

I'm having a similar issue to #1 but the message is different.

I'm using antigen on Arch Linux and my ZSH version is 5.7.1, my .zshrc looks like this:

export ADOTDIR=$HOME/.antigen
export ANTIGEN_BUNDLES=$ADOTDIR/bundles
export POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(virtualenv dir vcs)
export POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status time)
export POWERLEVEL9K_STATUS_VERBOSE=false
export POWERLEVEL9K_MODE='nerdfont-complete'
export POWERLEVEL9K_PROMPT_ON_NEWLINE=true
export TERM="screen-256color"
export DISABLE_AUTO_TITLE="true"

# Use antigen
source $ADOTDIR/antigen.zsh

# Load the oh-my-zsh's library.
antigen use oh-my-zsh

#zsh theme
antigen theme romkatv/powerlevel10k powerlevel10k

virtualenv element has empty name

The virtualenv element does not display the name of the venv anymore.

It was working a few days ago, but stopped recently (I tried git master branch).

Tags and revisions

Hello

First of all thank you for the time you spent on this project. Optimisation is frequently dismissed as unimportant or at least not worth one's time, so it is good to see someone do this important but thankless job. The improvements are impressive, and will make installing this fancy prompts on weaker machines thinkable.

You mentioned the fact that tags and revisions aren't shown in the prompt. I don't yet know what revisions are, but tags got pretty important to me after I began browsing the linux kernel repo. You said that an issue was to be raised if we wanted the feature, which is what I am doing right now.

To the extent that your time permits it, if it's not too bad for performance, I'd like you to add the tag/revision feature (and I think I do not speak for myself alone), please.

Thank you very much in advance,

rico

Explain what and how powerlevel10k is faster

In your README you make the claim that powerlevel10k is faster and show some benchmarks, what isn't clear is what you do to make it faster. What are your plans to keep this updated in the future with new powerlevel9k features?

_p9k_init:hash:121: no such command: tput

zsh 5.4.2, Ubuntu 18.04, zplug plugin manager
After replace zplug "bhilburn/powerlevel9k", use:powerlevel9k.zsh-theme with zplug "romkatv/powerlevel10k", use:powerlevel10k.zsh-theme
It report _p9k_init:hash:121: no such command: tput every time open the zsh.
But the theme seems still take effect and works fine.

Freezes with `zplug`

I have the following line in .zshrc

zplug "romkatv/powerlevel10k", use:powerlevel10k.zsh-theme

When running zplug load shell freezes. I can hit Ctrl-c to resume to shell, and then prompt renders correctly.

zplug --log output:

{"pid":22729,"shlvl":2,"level":"INFO","dir":"/home/igor","message":"ZPLUG_LOADFILE is not found","trace":["__zplug::log::write::info:2","__zplug::io::file::load:3","/usr/share/zsh/scripts/zplug/init.zsh:33","/home/igor/.zshrc:67","zsh:0"],"date":"2019-03-07T23:53:12+0100"}
{"pid":22729,"shlvl":2,"level":"INFO","dir":"/home/igor","message":"turn monitor on","trace":["__zplug::log::write::info:2","__zplug::job::polling::periodic:9","zsh:1"],"date":"2019-03-07T23:53:15+0100"}

With manual sourcing everything works as expected

nvm slows down prompt considerably

When adding nvm to POWERLEVEL9K_LEFT_PROMPT_ELEMENTS= the prompt slows down considerably to 100-200ms per prompt.

Not a deal breaker, just thought you should know.

Minor visual inconsistencies with powerlevel9k

Thanks for the speed improvements! There are some visual inconsistencies between powerlevel9k (top) and powerlevel10k (bottom):

Screen Shot 2019-04-06 at 3 43 55 PM

Are there any additional settings that I need to apply to make it look more like powerlevel9k?

_p9k_cache_set:3: no such file or directory: /tmp/p9k_cache_channel.71778

I get the following error printed several times when starting up powerlevel10k with zplug.

_p9k_cache_set:3: no such file or directory: /tmp/p9k_cache_channel.71778
_p9k_cache_set:3: no such file or directory: /tmp/p9k_cache_channel.71778
_p9k_cache_set:3: no such file or directory: /tmp/p9k_cache_channel.71778
_p9k_cache_set:3: no such file or directory: /tmp/p9k_cache_channel.71778
_p9k_cache_set:3: no such file or directory: /tmp/p9k_cache_channel.71778
_p9k_cache_set:3: no such file or directory: /tmp/p9k_cache_channel.71778
_p9k_cache_set:3: no such file or directory: /tmp/p9k_cache_channel.71778

OS: FreeBSD 12.0
ZSH: zsh 5.7.1 (amd64-portbld-freebsd12.0)

rprompt not showing up

My rprompt (the clock/elapsed time stuff) doesn't show up with the default config or the .pure config. Everything else, like the powerline and git stuff show up fine.

I'm kind of a noob here so I've probably messed up some configs somewhere, but I have no idea how to debug. Could you possibly give some pointers?

_p9k_cache_get: bad math expression on startup

After enabling your version of the prompt I get the following error on startup of my shell. It never returns a prompt after.

 _p9k_cache_get:1: bad math expression: operator expected atprompt_use...'
_p9k_cache_get:1: bad math expression: operator expected at 1 0 0' 

Too many threads for gitstatus: is it possible to have one gitstatusd per host?

I've been facing strange can't create OS threads error from different unrelated programs. Then I realized that gitstatusd spawned near 4000 threads...

Some context: I'm working on a shared host, which has a large number of CPU cores. Thus gitstatusd defaults to 320 threads per instance. And I heavily use tmux, inside which I have about 10~20 shells. Each shell prompt spawns one gitstatusd, which then starts 320 threads...

Therefore my suggestion: is it possible to launch exactly one gitstatusd per host, and each shell can communicate with it using unix domain socket?

Issue with `os_icon` due to a recent commit

Hi,

A recent commit seems to cause issues with os_icon on my setup.
It now prints Tux icon instead of my distribution icon (Arch Linux). It was working fine two days ago, I haven't made any change.

I'm using the AUR package and update powerlevel10k with yay and "devel": true" in my .config file.

  • .zshrc

POWERLEVEL9K_MODE='nerdfont-complete'
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon root_indicator dir dir_writable rbenv vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status time)

source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
source /usr/share/zsh-theme-powerlevel10k/gitstatus/gitstatus.plugin.zsh

Using powerlevel9k (source /usr/share/zsh-theme-powerlevel9k/powerlevel9k.zsh-theme) solves the problem, the Arch icon is back.

$ print $OS_ICON
  • with powerlevel10k:
        # Tux icon

Tux_icon

  • with powerlevel9k:
         # Arch Linux icon

Arch_icon

I don't have any issue with icons, here's a screenshot with icons_test set in .zshrc. As you can see, LINUX_ARCH_ICON is correctly displayed (bottom left corner, pink background).

Screenshot_20190314_165505

  • $ zsh --version
zsh 5.7.1 (x86_64-pc-linux-gnu)
  • $ yay -Qi zsh-theme-powerlevel10k-git
Name            : zsh-theme-powerlevel10k-git
Version         : v0.6.6.r217.gada73dc-1
  • $ yay -Qi nerd-fonts-complete
Name            : nerd-fonts-complete
Version         : 2.0.0-5
  • $ uname -a
Linux archlinux 5.0.1-arch1-1-ARCH #1 SMP PREEMPT Sun Mar 10 10:55:53 UTC 2019 x86_64 GNU/Linux
  • $ cat /usr/lib/os-release
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"

Thanks in advance for your help.

Prompt hangs upon exit of virtualenv

My specific case is with Pipenv but whenever I exit the virtualenv it hangs and I have to press enter an aditional time to get the prompt to display once more.

icons not shown correct.

zsh 5.4.2, Ubuntu 18.04

I set POWERLEVEL9K_SHORTEN_DIR_LENGTH=2
With powerlevel9k I have:
Screenshot-9

While with powerlevel10k:
Screenshot-10

truncate options seem not to work

Hello. First of all, thanks for forking P9K and fixing the speed issues!!

I was wondering though why some of my POWERLEVEL9K settings didn't take effect, such as

POWERLEVEL9K_DIR_SHORTEN_STRATEGY=truncate_from_right

My prompt is showing all dir segments all the time.

Powerlevel10k breaks xcwd

I use xcwd to open new terminal windows in the same directory as the current one. Unfortunately, with Powerlevel10k it always reports my home directory.
With sh/bash it works properly, it also works with other oh-my-zsh themes (including original Powerlevel9k). I use suckless-terminal as my terminal emulator.

If I understand correctly, the problem is that current directory is not propagated back to the terminal emulator for some reason.

vcs_joined doesn't work

It seems that a prompt segment of vcs_joined doesn't work in powerlevel10k.

This section of the powerlevel9k docs says:

It is possible to display two segments as one, by adding _joined to your segment definition. The segments are always joined with their predecessor, so be sure that this is always visible.

So I'd expect it to work. However...

With a freshly cloned powerlevel10k (see below for git hash), and a ~/.zshrc consisting only of this:

export POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(time vcs)
source ~/powerlevel10k/powerlevel10k.zsh-theme

... then everything works as expected. But if I add _joined to the vcs part, to give:

export POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(time vcs_joined)
source ~/powerlevel10k/powerlevel10k.zsh-theme

... then I get this output:

_p9k_vcs_gitstatus:16: command not found: gitstatus_query
prompt_vcs:12: command not found: vcs_info

(followed by the prompt, but without any vcs info).

Reporting this as a bug as my understanding is that you're aiming for full powerline9k compatability.

$ zsh --version
zsh 5.7.1 (x86_64-apple-darwin18.2.0)
$ cd ~/powerlevel10k
$ git rev-parse HEAD
e5dbe4fa2e5ba010968be2d35a987e74653ea115

aarch64

Missing gitstatus/bin/gitstatusd-linux-aarch64

Symlinking gitstatusd-linux-armv7 works but has to be done manually

Encountering an error trying to load powerlevel10k with oh-my-zsh

Hi, I'm using oh-my-zsh, and I can't get this to work.

This is the error I'm getting:
~/.oh-my-zsh/custom/themes/powerlevel10k/powerlevel10k.zsh-theme:77: unknown condition: -v

I've tried to both add the source ~/.oh-my-zsh/custom/themes/powerlevel10k/powerlevel10k.zsh-theme, as well as doing it the oh-my-zsh way of setting ZSH_THEME="powerlevel10k/powerlevel10k". Both are giving me the same error.

Any help would be appreciated, looking forward to trying this!

Home icon not used anymore

I have set the options POWERLEVEL9K_HOME_ICON="\uf07b" and POWERLEVEL9K_HOME_FOLDER_ABBREVIATION="". But what I get is the closed folder icon and a ~. I assume both not to be there. How do I make my old configuration working again?

This is my configuration regarding the dir segment:

### Dir Segment
#### Short Path
POWERLEVEL9K_SHORTEN_DIR_LENGTH=2
POWERLEVEL9K_SHORTEN_STRATEGY="truncate_from_right"
POWERLEVEL9K_SHORTEN_DELIMITER=".."

#### Colors
POWERLEVEL9K_DIR_DEFAULT_BACKGROUND="239"
POWERLEVEL9K_DIR_DEFAULT_FOREGROUND="15"

POWERLEVEL9K_DIR_HOME_BACKGROUND="239"
POWERLEVEL9K_DIR_HOME_FOREGROUND="15"

POWERLEVEL9K_DIR_HOME_SUBFOLDER_BACKGROUND="239"
POWERLEVEL9K_DIR_HOME_SUBFOLDER_FOREGROUND="15"

#### Icons & Separators
POWERLEVEL9K_HOME_ICON="\uf07b"
POWERLEVEL9K_DIR_PATH_SEPARATOR_ICON="\uE0BB"
POWERLEVEL9K_DIR_PATH_SEPARATOR=" $(print_icon 'DIR_PATH_SEPARATOR_ICON') "
POWERLEVEL9K_HOME_FOLDER_ABBREVIATION=""

custom prompt segement broke in recent commits

With plain powerlevel9k, and prior to just updating, my custom prompt would work.
After updating I get the error: left_prompt_segment:shift:73: shift count must be <= $#
It still works with powerlevel9k

prompt_my_kubecontext() {
  local kubectl_version="$(kubectl version --client 2>/dev/null)"

  if [[ -n "$kubectl_version" ]]; then
    # Get the current Kuberenetes context
    local cur_ctx=$(kubectl config view -o=jsonpath='{.current-context}')
    cur_namespace="$(kubectl config view -o=jsonpath="{.contexts[?(@.name==\"${cur_ctx}\")].context.namespace}")"
    # If the namespace comes back empty set it default.
    if [[ -z "${cur_namespace}" ]]; then
      cur_namespace="default"
    fi

    local k8s_final_text=""

    if [[ "$cur_ctx" == "$cur_namespace" ]]; then
      # No reason to print out the same identificator twice
      k8s_final_text="$cur_ctx"
    else
      k8s_final_text="$cur_ctx/$cur_namespace"
    fi

    "$1_prompt_segment" "$0" "$2" "25" "15" "$k8s_final_text" "KUBERNETES_ICON"
  fi
}

POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
POWERLEVEL9K_RPROMPT_ON_NEWLINE=true
POWERLEVEL9K_SHORTEN_DIR_LENGTH=2
POWERLEVEL9K_SHORTEN_STRATEGY="truncate_beginning"
POWERLEVEL9K_RVM_BACKGROUND="black"
POWERLEVEL9K_RVM_FOREGROUND="249"
POWERLEVEL9K_RVM_VISUAL_IDENTIFIER_COLOR="red"
POWERLEVEL9K_TIME_BACKGROUND="black"
POWERLEVEL9K_TIME_FOREGROUND="249"
POWERLEVEL9K_TIME_FORMAT="\UF43A %D{%I:%M  \UF133  %m.%d.%y}"
POWERLEVEL9K_RVM_BACKGROUND="black"
POWERLEVEL9K_RVM_FOREGROUND="249"
POWERLEVEL9K_RVM_VISUAL_IDENTIFIER_COLOR="red"
POWERLEVEL9K_STATUS_VERBOSE=false
POWERLEVEL9K_VCS_CLEAN_FOREGROUND='black'
POWERLEVEL9K_VCS_CLEAN_BACKGROUND='green'
POWERLEVEL9K_VCS_UNTRACKED_FOREGROUND='black'
POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND='yellow'
POWERLEVEL9K_VCS_MODIFIED_FOREGROUND='white'
POWERLEVEL9K_VCS_MODIFIED_BACKGROUND='black'
POWERLEVEL9K_COMMAND_EXECUTION_TIME_BACKGROUND='black'
POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND='blue'
POWERLEVEL9K_FOLDER_ICON=''
POWERLEVEL9K_STATUS_OK_IN_NON_VERBOSE=true
POWERLEVEL9K_STATUS_VERBOSE=false
POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=0
POWERLEVEL9K_VCS_UNTRACKED_ICON='\u25CF'
POWERLEVEL9K_VCS_UNSTAGED_ICON='\u00b1'
POWERLEVEL9K_VCS_INCOMING_CHANGES_ICON='\u2193'
POWERLEVEL9K_VCS_OUTGOING_CHANGES_ICON='\u2191'
POWERLEVEL9K_VCS_COMMIT_ICON="\uf417"
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="%F{blue}\u256D\u2500%f"
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="%F{blue}\u2570\uf460%f "
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context os_icon ssh root_indicator dir dir_writable vcs my_kubecontext)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(command_execution_time  status  time)

aws and kubecontext not shown while using purepower

When using the purepower mode, the aws and kubecontext prompt segmets/elements don't show up. They are visible when not using the purepower in powerlevel10k.

I would love to use purepower but this is a deal breaker for me.
I'll assist you in any way I can.

Font oddities on MacOS

Love the improved performance you added with this module.

I've noticed that the custom colors I added in my other segments did not transition when I source Powerlevel10k:

image

Some of of the fonts didn't render either (uF017 & UF073)
I'm using iTerm2 with Sauce Code Pro Nerd Font Complete

prompt_powerlevel10k_setup syntax error

When execute prompt_powerlevel10k_setup

/romkatv/powerlevel10k/prompt_powerlevel10k_setup: line 25: conditional binary operator expected
/romkatv/powerlevel10k/prompt_powerlevel10k_setup: line 25: syntax error near `_P9K_SOURCED'
/romkatv/powerlevel10k/prompt_powerlevel10k_setup: line 25: `[[ -v _P9K_SOURCED ]] && return'

POWERLEVEL9K_MULTILINE_(FIRST/LAST)_PROMPT_PREFIX Not Applied

I have a config with:

POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=''
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="%F{012}❯ "

While this works on the powerlevel9k repository but when I switch to powerlevel10k these variables do not seem to be applied.

Git status is very slow

Hello there,

I've been using powerlevel10k for a few weeks now and I suddenly noticed that git status is very slow on a git folder I have. The coloring of the git status takes a few seconds to turn to orange (it stays grey for a few seconds). I remember testing powerlevel10k in this very same folder and it behaved ok.

Other zsh themes are instant, such as "minimal" or "awesomepanda" or the likes. Did you make any changes to that recently?

[zimfw] Unintended echo before my output

I do not know what causes this, but I switched to powerlevel10k, and I am getting ${_P9K_HOOK1+${_P9K_HOOK2-${_P9K_HOOK2=}$(echo >&12)}}${_P9K_HOOK1=} before every line. With powerlevel9k, I don't have this problem.

I am using the promp theme along zimfw, and used the following commands to install it;

git clone --recursive 'https://github.com/romkatv/powerlevel10k.git' \
    "${ZIM_HOME}/modules/prompt/external-themes/powerlevel10k"
ln -sf "${ZIM_HOME}/modules/prompt/external-themes/powerlevel10k/powerlevel10k.zsh-theme" 
    "${ZIM_HOME}/modules/prompt/functions/prompt_powerlevel10k_setup"

Which is how powerlevel9k is originally installed on zimfw.

I set the theme to be zprompt_theme='powerlevel10k'.

Icons disappearing

Description

When first opening a session, all looks normal but after going into the root of the home dir (or just pressing return without changing directory):

  • the left prompt HOME_ICON disappear but reappear on any directory other than home.
  • the right prompt LOAD_ICON disappear but never reappear.
  • The left prompt LAST_PROMPT_PREFIX is replaced by a faded grey icon nonsense and reappear on any directory other than home.

Preview

image

Powerlevel9K config

POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_RPROMPT_ON_NEWLINE=true
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=""
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX=" \uF101 "
POWERLEVEL9K_LOAD_ICON="\uF0AE"
POWERLEVEL9K_DISK_USAGE_ONLY_WARNING=false
POWERLEVEL9K_DISK_USAGE_WARNING_LEVEL=80
POWERLEVEL9K_STATUS_ERROR_BACKGROUND='red'
POWERLEVEL9K_STATUS_ERROR_FOREGROUND='white'
POWERLEVEL9K_DIR_BACKGROUND='black'
POWERLEVEL9K_FAIL_ICON="\uF140"
POWERLEVEL9K_DIR_HOME_FOREGROUND='black'
POWERLEVEL9K_HOME_ICON="\uF303"
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir dir_writable vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status load time disk_usage ssh background_jobs command_execution_time virtualenv vpn_ip)
POWERLEVEL9K_STATUS_VERBOSE=false
POWERLEVEL9K_SHORTEN_STRATEGY="truncate_middle"
POWERLEVEL9K_SHORTEN_DIR_LENGTH=4
POWERLEVEL9K_MODE='nerdfont-fontconfig'

VCS Icon foregrounds incorrectly colored

With the new addition of improved VCS theming I have noticed colors do not seem to be correctly set for the icons if my understanding of the new system is correct. Possibly assuming the color of the dominant foreground

Powerlevel Config: Here
Applied like this: zplugin ice lucid atinit"_pastel_init"; zplugin light romkatv/powerlevel10k

For context:
*: Stash (Should be green)
?: Untracked (Should be red)
!: Unstaged (Should be yellow)

Pre-new Theming

1: Just Stash
image

2: Stash/Untracked
image

3: Stash/Untracked/Unstaged
image

New Theming

1: Just Stash
image

2: Stash/Untracked
image

3: Stash/Untracked/Unstaged
image

Readme addition suggestions

Hello,

First, thanks for making this project, it is indeed both much faster than the original theme and a drop in compatible replacement.

I have a few suggestions for additions or changes in the Readme, for stuff than personally confused me:

  1. You wrote:

Powerlevel10k uses the same configuration options as Powerlevel9k and produces the same results. It's simply faster. There is no catch.

however it directy contradicts the sentence at the end:

Git prompt doesn't show tags and revisions. Open an issue if you need them.

  1. Clearly mention that to be faster, this version spawns 2 subprocesses (zsh and gitstatusd), the processes are not a problem for me, but was somewhat a surprise, and looked very suspicious at first sight.

  2. I see that you are devoting time and energy to upstream some of the changes, and I think you should mention it with a link to the relevant issues. Even if it fails or you don't have enough time to push though, it shows that is not a "hostile" fork, and it also puts pressure on the upstream project.

  3. On Arch Linux, powerlevel10k can be installed with an AUR package (I am not the packager), maybe you should add a link to it

latest commit broke git status prompt

Hi, the latest commit you just made broke my git status prompt. Now it does not show anymore, and when I run

gitstatus_query POWERLEVEL9K && set | egrep '^VCS_STATUS'

in a git repository, I get

VCS_STATUS_RESULT=norepo-sync

No gitstatusd-freebsd-amd64 binary

I'm having an issue running powerlevel10k on my FreeBSD laptop:

uname -a
FreeBSD ed 12.0-RELEASE-p3 FreeBSD 12.0-RELEASE-p3 GENERIC  amd64
source /tmp/powerlevel10k/powerlevel10k.zsh-theme                                                                                                 
file not found: /tmp/powerlevel10k/gitstatus/bin/gitstatusd-freebsd-amd64

Linking gitstatusd-freebsd-amd64 to gitstatusd-linux-x86_64 gives the following:

ELF binary type "3" not known.
gitstatus failed to initialize

Linux support is not installed and I'd rather not bother to install it to improve the zsh prompt speed.

Nerdfont icons have different mapping

Not sure why, but a few icons seems to print differently with p10k when using nerdfont

For example the commit icon in git and some colors

P9k
image

P10k
image

[ macOS ] Glyphs broken

Hi @romkatv,

Screen Shot 2019-04-01 at 23 32 14

I saw this other issue #9, but not sure if it can be related with mine.

Relevant ~/.zshrc part:

   183	POWERLEVEL9K_MODE='awesome-fontconfig'
   184	#AWS_DEFAULT_PROFILE=adv
   185	DEFAULT_USER="$USER"
   186	POWERLEVEL9K_HOME_ICON=''
   187	POWERLEVEL9K_HOME_SUB_ICON=''
   188	POWERLEVEL9K_FOLDER_ICON=''
   189	POWERLEVEL9K_ETC_ICON=''
   190	POWERLEVEL9K_TIME_FORMAT="%D{%H:%M}"
   191	POWERLEVEL9K_DIR_PATH_SEPARATOR=" $(print_icon "LEFT_SUBSEGMENT_SEPARATOR") "
   192	#POWERLEVEL9K_DIR_HOME_SUBFOLDER_FOREGROUND="white"
   193	#POWERLEVEL9K_DIR_HOME_FOREGROUND='white'
   194	POWERLEVEL9K_DIR_HOME_BACKGROUND='white'
   195	POWERLEVEL9K_DIR_HOME_SUBFOLDER_BACKGROUND="white"
   196	#POWERLEVEL9K_DISABLE_RPROMPT=true
   197	POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE=true
   198	POWERLEVEL9K_CONTEXT_DEFAULT_BACKGROUND="blue"
   199	POWERLEVEL9K_CONTEXT_DEFAULT_FOREGROUND="black"
   200	#POWERLEVEL9K_MODE="awesome-fontconfig"
   201	#POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir_joined aws chruby virtualenv nvm vcs background_jobs)
   202	POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir_joined virtualenv vcs)
   203	#POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status background_jobs history time)
   204	POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(history time)
   205	POWERLEVEL9K_SHORTEN_DIR_LENGTH=1
   206	POWERLEVEL9K_SHORTEN_DELIMITER=""
   207	POWERLEVEL9K_SHORTEN_STRATEGY="truncate_from_right"

Sys specs:
macOS 10.14.4
iTerm2 3.2.8
Fonts: Monaco and for the non-ASCII characters SourceCodePro+Powerline+Awesome Regular

Thanks!

Impressed

Just tried it out. At first I had my doubts, but the prompt is noticeably faster. I didn't even realize there was a slight lag in powerlevel9k until I tried powerlevel10k and my prompt loaded instantly. Good job!

Closing this issue now as it's not anything that needs to be fixed.

Using \local does not set variable

I have bisected the issue to 5ee0054, but I can't tell what change might be causing the issue.

To test, you can try:

\local var=1

As of that commit, the variable will not be set. Prior to that, it was working fine. I noticed the issue when conda stopped working, as it uses \local in it's functions to avoid aliases.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.