Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Kyle Sandeman
    @Kyle-sandeman-mrdfood
    removed instant prompt, replaced omz theme and removed source ./.p10k.sh near bottom of zshrc, then exec zsh
    ➜  /tmp echo beep # test
    beep
    It might be helpful to see the problem occur in a gif or such, since a screenshot post-problem does not illustrate the part where the transient prompt "moves". Will attempt
    Kyle Sandeman
    @Kyle-sandeman-mrdfood
    And this might help too: clear fixes the problem, seemingly. Could this be a "cursor thought to be on wrong line" problem?
    Roman Perepelitsa
    @romkatv
    Can you try to isolate it? Start by removing everything except powerlevel10k so that your zshrc is literally just two source lines. If the problem still reproduces, replace the source ~/.p10k.zsh line with POWERLEVEL9K_TRANSIENT_PROMPT=always. If it still reproduces, replace the last line with POWERLEVEL9K_TRANSIENT_PROMPT=off.
    Also, what's the output of locale && locale -a?
    Kyle Sandeman
    @Kyle-sandeman-mrdfood
    Will do the rest, here's locale so long
    ❯ locale && locale -a
    LANG=en_US.UTF-8
    LANGUAGE=
    LC_CTYPE="en_US.UTF-8"
    LC_NUMERIC="en_US.UTF-8"
    LC_TIME="en_US.UTF-8"
    LC_COLLATE="en_US.UTF-8"
    LC_MONETARY="en_US.UTF-8"
    LC_MESSAGES="en_US.UTF-8"
    LC_PAPER="en_US.UTF-8"
    LC_NAME="en_US.UTF-8"
    LC_ADDRESS="en_US.UTF-8"
    LC_TELEPHONE="en_US.UTF-8"
    LC_MEASUREMENT="en_US.UTF-8"
    LC_IDENTIFICATION="en_US.UTF-8"
    LC_ALL=en_US.UTF-8
    C
    C.UTF-8
    en_US.utf8
    POSIX
    Roman Perepelitsa
    @romkatv
    Your locale looks wrong. Try this: export LC_ALL=C.UTF-8
    Kyle Sandeman
    @Kyle-sandeman-mrdfood
    highly doubt that's it but I will try it if this next bit doesn't yield anything. It seems like gl (alias gl='git pull') seems to start the problem?
    Roman Perepelitsa
    @romkatv

    It seems like gl (alias gl='git pull') seems to start the problem?

    If you expect an answer to this question, please elaborate.

    Kyle Sandeman
    @Kyle-sandeman-mrdfood
    Was investigating, gl was not it, I think I've found the root cause: virtualenvwrapper which I use for managing multiple python projects on my VPS. Directly after workon (a shell function it creates) the problem occurs
    But I can't reproduce with a new "project" made from the p10k I cloned as a test. I think I'll stop wasting your time, thank you very much for your patience.
    Roman Perepelitsa
    @romkatv
    Can you clarify? What is the absolutely minimal zshrc that reproduces the problem?
    Roman Vetter
    @PhoneWalletKeys
    I am unable to edit the icons because it's not giving me permission to go into the file. I just want to be able to have the branch icon. That's it. Where do I go to do that?
    ~/.p10k.zsh is that not the file I should executing in order to edit the fields I need to? It keeps giving me a permission denied error.
    Roman Perepelitsa
    @romkatv
    If you attempt to execute ~/.p10k.zsh, you'll get permission denied because this file is not executable and not supposed to be executable. You need to open this file in a text editor.
    Paul Preibisch
    @firecentaur
    hi everyone, I am trying to add the short git hash for current commit on my prompt, but cant find how to do it
    Roman Perepelitsa
    @romkatv
    @firecentaur Open ~/.p10k.zsh, search for my_git_formatter and edit that function. It already has code that puts commit has in prompt (only if there is no branch), so you just need to move it where you want it to be.
    Roman Vetter
    @PhoneWalletKeys
    Once I open this file in a txt editor, I can edit the icons that appear and then save my changes and it will update automatically? Or do I need to do something else?
    Roman Perepelitsa
    @romkatv
    After editing ~/.p10k.zsh you need to restart zsh. You can run exec zsh for that.
    Kelly Leahy
    @kellypleahy
    image.png
    Hi, I'm new to p10k. Holy crap this is an incredible shell prompt. Thank you very much for the work you put in on this! I've customized slightly to force my git hash to always show, as well as to hide some of the length of my directory names when in git repos per issue #923. I have one other minor annoyance - it seems to be cutting off the end of my branch name (last 2 chars) and I don't know why. Any ideas?
    the branch name in the above pic should be wip/aws but it shows as wip/a then then has @... (hash)
    Kelly Leahy
    @kellypleahy
    ah... I think the problem was that I had the wrong font installed. I have updated and it fixed the problem. Thanks!
    Roman Perepelitsa
    @romkatv
    @kellypleahy My guess it that you are using Konsole. Konsole has a bug related to the display of glyph that come from a fallback font. See romkatv/powerlevel10k#1879.
    alex_a1
    @alex_a1:matrix.org
    [m]
    Hey I have a silly question: What is the xplr integration? Because I don't see anything so maybe I'm something?
    Christo Kotze
    @onaforeignshore
    Roman Perepelitsa
    @romkatv
    xplr prompt segments shows a visual indicator in a shell opened from xplr.
    alex_a1
    @alex_a1:matrix.org
    [m]
    I see, thanks
    alex_a1
    @alex_a1:matrix.org
    [m]
    Hey, how do I make the first segment start symbol like this?
    Meaning a diamond with background color the same as the terminal background color
    Roman Perepelitsa
    @romkatv
    @alex_a1:matrix.org Try this: POWERLEVEL9K_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL='%k%4F%S\uE0B0%s'
    alex_a1
    @alex_a1:matrix.org
    [m]
    Damn Roman
    I love you almost as much as I love my wife
    thank you
    Roman Perepelitsa
    @romkatv
    You are welcome.
    pull-task-dev
    @pull-task-dev
    Thank you for powerlevel10k! Currently observing several right hand prompt elements at various applicable times such as status, command_execution_time and aws profile. Sadly I am not seeing any prompt element associated with my node version from nvm. After further investigation I observe that I am really using zsh-nvm (an installation option referenced by nvm) that is a small wrapper called nvm, which shims in a few nice convenience functions before passing the command arguments to the real nvm (now named _zsh_nvm_nvm). Just wondering what specifically powerlevel10k is looking for in order to display the node version from npm, so I can know whether I can stick with zsh-nvm or need to use another installation method and lose some nicities. Thank you.
    pull-task-dev
    @pull-task-dev
    Well it does indeed work with zsh-nvm. I now see the comment: # Only prints the segment if different than the default value. Thank you.
    @alonso_isidoro
    @alonsoir
    How can I disable the text truncation process? it is very annoying to run a command and not be able to see all the output. I am using a 15.6 laptop with Kali linux and p10k. I get lost in so many settings. I have tried many configurations and none satisfies me. I want to disable everything on the right, so that everything appears on the right of the prompt. Thanks.
    Roman Perepelitsa
    @romkatv

    it is very annoying to run a command and not be able to see all the output

    I can imagine that it would be. Powerlevel10k doesn't do anything with the output of commands. It doesn't truncate it or modify it in any way.

    I want to disable everything on the right, so that everything appears on the right of the prompt.

    You can customize what's shown on the right by opening ~/.p10k.zsh and editing the content of POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS close to the top of the file.

    YYP@Yang
    @YYP30

    When open Iterm

    /Users/yyp_yang/.zshrc:9: command not found: i#

    put typeset -pm 'POWERLEVEL9K_INSTANT_PROMPT|ZSH_VERSION'

    Terms output:

    typeset ZSH_VERSION=5.8.1
    typeset POWERLEVEL9K_INSTANT_PROMPT=quiet

    .zshrc file top

    # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
    # Initialization code that may require console input (password prompts, [y/n]
    # confirmations, etc.) must go above this block; everything else may go below.
    if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
      source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
    fi
    how i should fiexd this problem
    my machine:
    Mac os: Monterey
    m1 pro 2021
    @romkatv
    Roman Perepelitsa
    @romkatv

    When open Iterm

    /Users/yyp_yang/.zshrc:9: command not found: i#

    This error is telling you that you have a bug one line 9 of /Users/yyp_yang/.zshrc. You need to fix that.

    YYP@Yang
    @YYP30
    @romkatv thanks so much, i fixed
    have a nice day
    Roman Perepelitsa
    @romkatv
    Great! Have a wonderful day as well.