Comments (17)
I have the same problem
on the latest windows 10 WSL
I use the following solution based on RickyLin, the color became perfect.
vi ~/.oh-my-zsh/themes/agnoster.zsh-theme
change
prompt_dir() {
prompt_segment blue $CURRENT_FG '%~'
}
to
prompt_dir() {
prompt_segment 39d $CURRENT_FG '%~'
}
from agnoster-zsh-theme.
For now I've "solved" the issue by changing the default ansi color blue in Terminal.app. I've done that by clicking the blue color (top row, 5th from the left) in the Terminal.app color Profiles tab:
And then using the color picker to pick the color from the screen shot in this repo:
from agnoster-zsh-theme.
For me this fixed it:
Go to Preferences > Profiles > Colors > Color Presents (on the bottom right) > Choose Solarized Dark
from agnoster-zsh-theme.
I have the same problem
on the latest windows 10 WSL
I use the following solution based on RickyLin, the color became perfect.vi ~/.oh-my-zsh/themes/agnoster.zsh-theme
changeprompt_dir() {
prompt_segment blue $CURRENT_FG '%~'
}to
prompt_dir() {
prompt_segment 39d $CURRENT_FG '%~'
}
Made this quicker by converting it to a single command:
sed -i '0,/blue/{s/blue/39d/}' ~/.oh-my-zsh/themes/agnoster.zsh-theme
from agnoster-zsh-theme.
I'm using Oh-My-Zsh in Ubuntu 18.04 on Windows. I didn't find out a better solution but finally modified the theme itself.
vim ~/.oh-my-zsh/themes/agnoster.zsh-theme
Change the blue
color to whatever color supported by terminal,
For example, I changed it to 076
and it looks like
The problem is that I probably have to revert the change before I can update to a new oh-my-zsh version.
from agnoster-zsh-theme.
I just checked, and this problem also appears no matter which color profile is chosen in macOS' Terminal.app. I also downloaded the latest agnoster.zsh-theme
and the problem is still showing when I open new terminal windows.
However, iTerm2 does not appear to have this issue. I can only speculate that I am missing some crucial setting in Terminal.app.
This is very annoying. Is there any way to get the correct color(s)?
from agnoster-zsh-theme.
For me this fixed it:
Go to Preferences > Profiles > Colors > Color Presents (on the bottom right) > Choose
Solarized Dark
Thank you, it worked for me on Plasma / konsole :)
from agnoster-zsh-theme.
Hey guys,
For terminal.app, use the solarized themes from this repository instead. It sets all of the colors correctly.
https://github.com/tomislav/osx-terminal.app-colors-solarized
from agnoster-zsh-theme.
On Ubuntu standard terminal theme with oh-my-zsh installed and agnoster theme turned on in ~/.zshrc
by adding into the ~/.zshrc the following:
prompt_dir() {
# prompt_segment blue $CURRENT_FG '%~'
prompt_segment blue white '%~'
}
Found the snippet in the ~/.oh-my-zsh/themes/agnoster.zsh-theme, so also it could be edited there.
You can see the default agnoster value
prompt_segment blue $CURRENT_FG '%~'
is replaced by
prompt_segment blue white '%~'
from agnoster-zsh-theme.
for me what worked is changing the ansi colors blue and green (normal & bright) to the colors you want to be first-level & second level respectfully
from agnoster-zsh-theme.
I have the same problem. I have resorted to typing pwd
all the time to see which directory I'm in, but that's not really the best solution. I'm not sure what Terminal.app does different
from agnoster-zsh-theme.
This StackOverflow question and answers might hint at the problem: https://stackoverflow.com/questions/36221252/terminal-and-iterm2-same-profile-ansi-colors-look-differently
from agnoster-zsh-theme.
While this is still an issue, I've chosen to abandon the idea of using terminal.app
in favor of iTerm2
. I do, however, hope this bug (if it is a bug) gets resolved, though.
from agnoster-zsh-theme.
As I no longer use terminal.app
, I am unsubscribing to this issue. I've no idea if it's been resolved with the proposed fixes above, so I'm not sure if I should close this issue, either.
from agnoster-zsh-theme.
To have the standard white text on dark background in Terminal.app modify the agnoster.zsh-theme by setting PRIMARY_FG=white (or PRIMARY_FG=FFF which if what I'm using), then change
prompt_context() {
local user=`whoami`
if [[ "$user" != "$DEFAULT_USER" || -n "$SSH_CONNECTION" ]]; then
prompt_segment $PRIMARY_FG default " %(!.%{%F{yellow}%}.)$user@%m "
fi
}
to
prompt_context() {
local user=`whoami`
if [[ "$user" != "$DEFAULT_USER" || -n "$SSH_CONNECTION" ]]; then
prompt_segment black $PRIMARY_FG " %(!.%{%F{yellow}%}.)$user@%m "
fi
}
I'm new to zsh so I don't know if this has side effects, but it seems to work just fine now.
from agnoster-zsh-theme.
Go to Preferences in iterm then Profile then select the dark blue color and make it any light color you want like teal
from agnoster-zsh-theme.
Agnoster doesn't work nicely with solarized dark, even with colors set correctly - context prompt hardcodes "black" color, which is very jarring:
I know I can change it to any value I want, but oh-my-zsh updates can break my changes. Also it would be nice if agnoster changed to white if SOLAROZED_THEME was set to light:
from agnoster-zsh-theme.
Related Issues (20)
- Some identification characters cannot be displayed HOT 3
- Display Problem on Ubuntu-18.04
- no display with shell HOT 1
- [help] Change Default path to minified version? HOT 1
- Broken prompt after another oh-my-zsh upgrade HOT 6
- display blanks from webstorm terminal HOT 2
- How can I shorten the prompt? HOT 2
- broken auto complete HOT 1
- An Empty Space Between the Segments on Windows Terminal?
- inside .git folders Agnoster produces "fatal: this operation must be run in a work tree"
- Problem with characters HOT 6
- Anaconda/Miniconda Python Virtual Environment displaying error
- warp Terminal is showing $SEGMENT_SEPARATOR on black when is in a git repo
- Agnoster Prompt triangles look separated HOT 3
- Font issues HOT 2
- Full prompt in same color !! HOT 1
- Please add a license file
- prompt no coloring HOT 1
- Issue with typed text not showing up in cmder
- messed up char on shell prompt HOT 1
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 agnoster-zsh-theme.