Comments (6)
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.
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.
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.
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.
Not a problem, glad you got it working. If all is well, could you close out your issue?
from powerlevel9k.
For sure, I'll do it, thank you again :)
from powerlevel9k.
Related Issues (20)
- [Performance] PL9K is terribly slow HOT 2
- history command times bug HOT 3
- warning at startup: command not found: prompt_vcsi HOT 2
- go_version doesn't work with go modules directory
- Why does the prompt on the right overflow to the next line? HOT 8
- Expanding on custom directory icons HOT 2
- Theme not applying properly [Ghostwheel] HOT 2
- Does this theme also manage the colors of files and directories from ls -G? HOT 4
- No icons with Nerd Fonts HOT 13
- how to reference another virtualenv plugin? HOT 3
- [Performance] HOT 2
- Disable/Hide all icons HOT 3
- Does make sense to have POWERLEVEL9K__[plugin_name]_[BG|FG]_COLOR variables? HOT 3
- Is it possible to only add a newline if vcs is present? HOT 2
- Hide a part of current working directory HOT 5
- POWERLEVEL9K_DIR_BACKGROUND not affecting prompt HOT 3
- Add modifications in different file HOT 1
- Unable to change theme in .zshrc file HOT 1
- Readme img is 404
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powerlevel9k.