Comments (20)
Hi, u can edit agnoster.zsh-theme
- search
prompt_end()
- modify
print -n "%{%f%}"
asprint -n "\n%{%f%}"
(just add\n
) - save it and re-open ur terminal
from agnoster-zsh-theme.
Maybe u can find it in this path: ~/.oh-my-zsh/custom/themes/
or ~/.oh-my-zsh/themes
I'm not really sure.
from agnoster-zsh-theme.
If you are not seeing any change maybe you are using the 'robyrussell' theme (it was my default). You can check that at the beginning of .zshrc:
If that is your case substitute this line in the file ~/oh-my-zsh/themes/robbyrussell.zsh-theme :
PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
for this one.
PROMPT+=$' %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)\n'
We sometimes get tired of configuring many times all the linux set up, for that reason you can move the config fimes .vimrc .zshrc ... to a repo, commit them often and make the system reach them at that place by creating hard links.
from agnoster-zsh-theme.
Hi, u can edit
agnoster.zsh-theme
- search
prompt_end()
- modify
print -n "%{%f%}"
asprint -n "\n%{%f%}"
(just add\n
)- save it and re-open ur terminal
Thanks buddy.
in case you don't see print again in agnoster, they have change to echo, so you will modify like this
echo -n "\n%{%f%}"
from agnoster-zsh-theme.
I've carried this out and additionally added a little prompt because it felt better
echo -n "\n>%{%f%}"
so it places a>
character on the newline before the cursor. However that character inherits the colour of whatever the main prompt line ends with (e.g. blue for directories, green or yellow for git). Is there a way I can force it to always be white?
Hi @M1ke, you can use this: echo -n "\e[m\n>%{%f%}"
which added \e[m
before \n
from agnoster-zsh-theme.
Hi, u can edit
agnoster.zsh-theme
- search
prompt_end()
- modify
print -n "%{%f%}"
asprint -n "\n%{%f%}"
(just add\n
)- save it and re-open ur terminal
Thank you!
from agnoster-zsh-theme.
Does anyone get this visual issue or know how to solve it?:
My prompt_end()
:
# End the prompt, closing any open segments
prompt_end() {
if [[ -n $CURRENT_BG ]]; then
echo -n " %{%k%F{$CURRENT_BG}%}$SEGMENT_SEPARATOR"
else
echo -n "%{%k%}"
fi
CURRENT_BG=''
echo -n "\e[m\nā%{%f%}"
}
from agnoster-zsh-theme.
Does anyone get this visual issue or know how to solve it?:
A bit late to the party, but if anybody else is experiencing the above, I've replaced the last two lines and it seems to be working fine:
echo -n "\e[m\nā%{%f%}"
CURRENT_BG=''
}
from agnoster-zsh-theme.
Hi may I know where is agnoster.zsh-theme located?
from agnoster-zsh-theme.
Thanks @griiid !
from agnoster-zsh-theme.
Cheers @griiid !!
from agnoster-zsh-theme.
Many thanks <3 ! @griiid
from agnoster-zsh-theme.
Thanks @griiid ! Something this simple is not always that obvious.
from agnoster-zsh-theme.
~/.oh-my-zsh/themes/agnoster.zsh-theme
from agnoster-zsh-theme.
Thanks @griiid š
from agnoster-zsh-theme.
I've carried this out and additionally added a little prompt because it felt better echo -n "\n>%{%f%}"
so it places a >
character on the newline before the cursor. However that character inherits the colour of whatever the main prompt line ends with (e.g. blue for directories, green or yellow for git). Is there a way I can force it to always be white?
from agnoster-zsh-theme.
Hi, u can edit
agnoster.zsh-theme
* search `prompt_end()` * modify `print -n "%{%f%}"` as `print -n "\n%{%f%}"` (just add `\n` ) * save it and re-open ur terminal
I did this procedure and it works fine but many times my zsh misbehaves in a random way.
Some times while I'm typing the first letter just vanishes and the virual thing just messes up if you guys are also facing this problem how did you all solve this?
from agnoster-zsh-theme.
So I'm currently using af-magic and I like the look but I hate how it's all on the initial line and cuts things off to go to the next line. I tried adding
prompt_end() { if [[ -n $CURRENT_BG ]]; then echo -n " %{%k%F{$CURRENT_BG}%}$SEGMENT_SEPARATOR" else echo -n "%{%k%}" fi echo -n "\n%{%f%}" CURRENT_BG='' }
from agnoster but I don't see a difference. Is there something else I need to add or am I going about this totally wrong?
from agnoster-zsh-theme.
I've carried this out and additionally added a little prompt because it felt better
echo -n "\n>%{%f%}"
so it places a>
character on the newline before the cursor. However that character inherits the colour of whatever the main prompt line ends with (e.g. blue for directories, green or yellow for git). Is there a way I can force it to always be white?Hi @M1ke, you can use this:
echo -n "\e[m\n>%{%f%}"
which added
\e[m
before\n
I am 3 years late to addressing this, but thanks, have done this and it worked!
from agnoster-zsh-theme.
@griiid Thanks griid
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.