agnoster / agnoster-zsh-theme Goto Github PK
View Code? Open in Web Editor NEWA ZSH theme designed to disclose information contextually, with a powerline aesthetic
A ZSH theme designed to disclose information contextually, with a powerline aesthetic
It is said to do the following:
Optionally set DEFAULT_USER to your regular username followed by prompt_context(){} in ~/.zshrc to hide the “user@hostname” info when you’re logged in as yourself on your local machine.
What does that look like?
Hi,
I installed zsh/powerline via the install.sh but can't see the special git symbols. I am using Debian jessie
Everytime a new command is ready to be taken on a non-git repository, the following error keeps showing before the input entry : fatal: Not a git repository (or any of the parent directories): .git
Digging in the soure code, I started suspecting this piece of code being the troublemaker.
I am not enough at ease with POSIX commands to be absolutely certain but the command git status --porcelain --ignore-submodules
does return an issue message (a nonzero-lengthy output) on my terminal so the test keeps being validated, whether a git repository is present or not.
It explains why I have the extra fields before the input in the no-git case whereas they're not supposed to be there.
I have been searching for friends in the same case as me through the web, but here I am...
Anyone could have a clue ? New git update making the quoted command obsolete ?
Hey, as much as I love your theme, I cannot use it since most of the time I'm in a light terminal, and the legibility with agnoster is really bad there.
The solution is actually really simple, and that is to pull colours from the terminal configuration.
By playing a little with the terminal configuration I got from something like this:
To something like this:
It's far from perfect, since the same colour options controls both the background of the user part, and the text. If I was to set the text how it should be, then it would look like this:
Also, ignore the rendering artefacts, I think I messed something up.
I use git clone powerline fonts and fc-cahe -vf after installation but this is not helped me.
help me please
Instead of ~/User/Documents/folder1/folder2
, I'd like to be able to just show /folder2
or maybe /folder1/folder2
so it doesn't take too much space. Is there a way for me to do this?
I'm looking at this section:
prompt_dir() {
prompt_segment blue black '%~'
}
but I don't really understand what it means.
Not sure if this is a bug here or in vcs_info
This project has no license. If the author could please choose a license that would be great and allow people to continue the authors work since this repository has not had any activity for a long time.
Thanks.
It would be nice to show the tag of the current commit if there is one.
Running Ubuntu Budgie 18.04. Install went fine, most icons work however some don't. See picture:
How it should look:
https://gist.githubusercontent.com/agnoster/3712874/raw/screenshot.png
How mine looks:
https://i.imgur.com/jOdVLp6.png
Any help would be appreciated!
COUld you guys please, give a direction on how to change them thanks.
I usually spawn applications from my terminal by wrapping the command in a nohup
and &
, for example nohup vlc blah.mp4 &
. This still shows the gear icon even though the application is not running in the background nor is it tied to that specific terminal window. To change this behaviour I changed line 210 from [[ $(jobs -l | wc -l) -gt 0 ]] && symbols+="%{%F{cyan}%}⚙"
to [[ $(jobs -l | sed '/nohup/d' | wc -l) -gt 0 ]] && symbols+="%{%F{cyan}%}⚙"
so that commands started with nohup are not included in the check for background processes.
Hi there,
I'm having an issue with the theme. It used to work perfectly fine until yesterday, but today I had this very weird display: every time I hit enter to perform a command, the login@hostname is displayed again and again in the prompt.
Also, the first time the login@hostname is displayed at the beginning, it looks like a standard prompt (see image here: https://bstn.fr/agnoster.png )
I haven't modified any file, and other themes seems to work just fine.
Any chance anyone knows what's going on?
Thanks
I use the following command :
git config --add oh-my-zsh.hide-status 1
and I check the config file:
[oh-my-zsh] hide-status = 1
but when I enter that git repo ,it still show the status.
[Ignore the censored directory name.] For some reason the colors and alignment of the tip of each color block is slightly off. It was fine before, but I did not realize when exactly this changed, so I am not sure what the cause is. I tried to change other settings (font, color), but could not get the colors/alignment to go back to normal. Currently I am using the solarized dark color theme in iTerm2 with the Input Mono Narrow font; previously I used Monaco, but changing it back does not fix it. Does anyone recognize these two issues (color and alignment)?
Thanks!
Is there a way to see if I'm working in a virtualenv when using Agnoster (Prezto & iTerm2 on OS X 10.11)?
Hello, I'm trying to edit the theme to add a new line after the directory listings..
More like:
~/github/agnoster-zsh-theme > master >
my command here
I am trying to customize the theme. Can you help me out here?
¿Alguien me puede decir como diablos instalo y configuro este tema paso a paso para que me quede JUSTO como sale en la foto??
Hey @agnoster,
Wondering where I can make a change to just show the current directory instead of the entire path?
Any hints would be great!
I find the font with agnoster is not compatible with terminator ?
can you tell me how to solve this problem?
In the screenshot of your terminal, you seem to have highlighting for shell commands:
I'd like to know how you achieved that. I currently am using iTerm2 + Solarized Dark and Meslo LG M Regular for Powerline font, and my terminal looks like this (close to what you have, but no command highlighting):
May I ask how I can have command-highlighting for things like "cd" and "touch" like yours?
I love the color scheme, but sometimes my git branch name kind of too long, it make me hard to read what I type.
How do I make like below
shiro@Mac ~/Sites/myproject/test/project1 branch-new-feature ●
my command start here
This theme uses several variables which sit around in the main shell namespace. Are some of these intended to be settable by the user to configure Agnoster? And at what points in the shell session lifecycle can they be modified?
I'm thinking in particular of:
$PRIMARY_FG
$CURRENT_BG
$SEGMENT_SEPARATOR
, $BRANCH
, $GEAR
, and other variables holding individual symbols$prompt_opts
, defined in prompt_agnoster_setup
. It doesn't seem to be used anywhere else, and that's not a standard zsh
parameter. Should that even be there?It looks like their global visibility is mostly an implementation detail, and not an intentional public interface. When backporting the OMZ changes in #5, I local
-ized many of them. I don't know if additional ones should be localized, or some of the ones I changed left exposed.
If we leave them exposed, we might want to group them by using a prefix, or collecting them in a single associative array.
With regards to git. When using powerline shell, you can see a count or indication for the following:
It would be very nice to have these indications in this theme. Or is it a functionality of the git
plug in?
Hey @agnoster !
Do you see any chance of unifying the many "forks" into this one? Of course, these are no real forks, because your repo came a bit late. Anyway. Some of these themes have solved some of your as "future work" marked issues. So it may be a good thing to merge that work into one repo (or - in worst case - to let go in favour of another theme).
A while ago I made a list of powerline-inspired themes: agnoster-like-themes.
Hello!
I am relatively sure this has been addressed already, however, I am unsure as to what I'm supposed to search for.
If you can see it, there is a small red / blue box around the directory / arrow, and I cannot seem to get rid of it. Any help on the matter would be appreciated.
Thank you kindly!
The Pure theme uses an asynch library to handle the fetching of data for Git.
This would probably be quite the rewrite, but Pure's Git performance is considerably better than this theme, and so could be worth it.
I followed all of the instructions (or so I thought) to get zsh
installed, as well as oh-my-zsh
and its agnoster
theme. I also had to get the correct Solarized
color themes and install them into terminal.app
, as well as the Powerline
fonts, including Meslo
. Such a big process just to style up terminal
to make it look pretty.
And yet, I must still be missing something.
For whatever reason, the directory part of the prompt is showing as dark blue with black text. This is happening for both the Solarized Dark and Solarized Light color themes, which makes me think that it isn't in those color themes themselves. Regardless of whether or not it is, how can I fix this issue, as it's clearly not correct?
Hi,
I'm using agnoster on many machnes and many users on that machines.
When logging and using su/sudo su i cannot deistingish different machines with same username pecause i loose the "SSH_CLIENT" on the su.
There is a way to force the hostname to be always displayed?
I'm running PHPStorm 2018.1, which has a built-in terminal, and am seeing this odd line-height that is reported on in other apps. It's obviously not a major bug (it's not a show-stopper by any means), but it does trigger my OCD alarms:
I've tried altering Preferences
->Editor
->Color Scheme
->Console Font
->Size
and ...->Line Spacing
, with no luck.
Any thoughts?
I did a ton a troubleshooting only to realize that iterm needs to be using the meslo font so maybe it'd help to mention in main readme that it may be required in mac ox? Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.