Giter Site home page Giter Site logo

Comments (6)

DaRo0 avatar DaRo0 commented on May 29, 2024 1

That's perfect!

I can confirm you that the parameter:

POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND='yellow'

It was missing.

After adding it to the config, everything seems normal now.

Thank you for your help :)

Regards,
Daniel

from powerlevel9k.

Thutm avatar Thutm commented on May 29, 2024

Have you set any P9K specific variables or is that happening with no extra configuration? If you have tried to customize or set any variables then the settings from your .zshrc or like file would be great to see. It looks like your background color is just set to black or some dark value when the git segment detects that git is not in a clean state.

from powerlevel9k.

DaRo0 avatar DaRo0 commented on May 29, 2024

Hello @Thutm ,

First I want to thank you for your time :)

I was using this tutorial:
https://medium.com/@Clovis_app/configuration-of-a-beautiful-efficient-terminal-and-prompt-on-osx-in-7-minutes-827c29391961

So far, I've just used this p9k variables:

POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="%{%B%F{black}%K{yellow}%} $user_symbol%{%b%f%k%F{yellow}%} %{%f%}"
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
POWERLEVEL9K_VCS_MODIFIED_BACKGROUND=’red’

My .zshrc file looks like this:

export ZSH="/Users/DaRo/.oh-my-zsh"

ZSH_THEME="powerlevel9k/powerlevel9k"

plugins=(
	git
	zsh-autosuggestions
	)

source $ZSH/oh-my-zsh.sh

POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir rbenv vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs history time)
POWERLEVEL9K_PROMPT_ON_NEWLINE=true

# Add a space in the first prompt
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="%f"
# Visual customisation of the second prompt line
local user_symbol="$"
if [[ $(print -P "%#") =~ "#" ]]; then
    user_symbol = "#"
fi
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="%{%B%F{black}%K{yellow}%} $user_symbol%{%b%f%k%F{yellow}%} %{%f%}"
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
POWERLEVEL9K_VCS_MODIFIED_BACKGROUND=’red’

# Colorise the top Tabs of Iterm2 with the same color as background
# Just change the 18/26/33 wich are the rgb values
echo -e "\033]6;1;bg;red;brightness;18\a"
echo -e "\033]6;1;bg;green;brightness;26\a"
echo -e "\033]6;1;bg;blue;brightness;33\a"


export NVM_DIR="/Users/DaRo/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
export PATH="/usr/local/opt/mysql-client/bin:$PATH"

Where could I find the part where the colour for when git segment detects that git is not in a clean state is set? That's the part that I could never find.

If I can give you more info, please ask!

Thank you very much again!!!

Regards,
Daniel

from powerlevel9k.

Thutm avatar Thutm commented on May 29, 2024

Try these:

POWERLEVEL9K_VCS_CLEAN_BACKGROUND
POWERLEVEL9K_VCS_CLEAN_FOREGROUND
POWERLEVEL9K_VCS_MODIFIED_BACKGROUND
POWERLEVEL9K_VCS_MODIFIED_FOREGROUND
POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND
POWERLEVEL9K_VCS_UNTRACKED_FOREGROUND

Documentation might be missing in master branch. It appears to be in next branch though. You could check for reference configs here:

https://github.com/Powerlevel9k/powerlevel9k/wiki/Show-Off-Your-Config

from powerlevel9k.

Thutm avatar Thutm commented on May 29, 2024

Not a problem, glad you got it working. If all is well, could you close out your issue?

from powerlevel9k.

DaRo0 avatar DaRo0 commented on May 29, 2024

For sure, I'll do it, thank you again :)

from powerlevel9k.

Related Issues (20)

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.