Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra line at the top of prompt #87

Closed
mhartington opened this issue Oct 26, 2015 · 11 comments
Closed

Extra line at the top of prompt #87

mhartington opened this issue Oct 26, 2015 · 11 comments

Comments

@mhartington
Copy link

I'm getting this extra line at the top of the prompt.

screen shot 2015-10-25 at 9 27 08 pm

I figured adding BULLETTRAIN_PROMPT_ADD_NEWLINE and setting it to false would do away with it, but it does not.

export BULLETTRAIN_PROMPT_ADD_NEWLINE=false

Is this the correct assumption or is there another setting I could configure?

@salmanulfarzy
Copy link

It should do fine, can you post your relevant .zshrc

@mhartington
Copy link
Author

Sure thing.

  source ~/antigen/antigen.zsh
  antigen use oh-my-zsh
  antigen bundle zsh-users/zsh-syntax-highlighting
  antigen theme https://github.com/caiogondim/bullet-train-oh-my-zsh-theme bullet-train
  # Tell antigen that you're done.
  antigen apply
  export BULLETTRAIN_TIME_SHOW=false
  export BULLETTRAIN_STATUS_SHOW=false
  export BULLETTRAIN_PROMPT_ADD_NEWLINE=false

@caiogondim
Copy link
Owner

I doubled check the code and it seems to be ok.
If you change something in your .zshrc you have to source it again or open a new terminal session.

To reload the .zshrc do source ~/.zshrc.
To open a new terminal session just do ctrl+T.

Let us know if it solves your problem.

@mhartington
Copy link
Author

Yep, sourced my zshrc and still nothing. Even removed all my other code in my zshrc and left just the antigen part. Still getting that new line. My zshrc is here
https://github.com/mhartington/dotfiles/blob/master/zshrc#L49

@caiogondim
Copy link
Owner

I just checked setting BULLETTRAIN_PROMPT_ADD_NEWLINE and it worked.
screen shot 2015-10-26 at 19 59 25

The last commit i'm running is 4cddc84
Can you check again if your project is up to date?

@mhartington
Copy link
Author

Thats it! Seems my local copy wasn't up to date as I thought it was. Sorry for the noise!

@mhartington
Copy link
Author

Just one last question, with antigen, it seems that I have to manual source my zshrc every time (not sure why). Any idea on that?

  source ~/antigen/antigen.zsh
  antigen use oh-my-zsh
  antigen bundle zsh-users/zsh-syntax-highlighting
  antigen theme https://github.com/caiogondim/bullet-train-oh-my-zsh-theme bullet-train
  # Tell antigen that you're done.
  antigen apply
  export BULLETTRAIN_TIME_SHOW=false
  export BULLETTRAIN_STATUS_SHOW=false
  export BULLETTRAIN_PROMPT_ADD_NEWLINE=false
  export BULLETTRAIN_GIT_ADDED="%F{black}✚%F{black}"
  export BULLETTRAIN_GIT_MODIFIED="%F{blue}✹%F{black}"

@dritter
Copy link

dritter commented Oct 27, 2015

@mhartington You have to define the variables before you tell antigen to use that theme. That should do it.

@mhartington
Copy link
Author

Thanks 👍

@salmanulfarzy
Copy link

@caiogondim Top line with CPU load, time, date and windows look pretty awesome. How to do it?

@caiogondim
Copy link
Owner

@sfarzy It a tmux theme i made https://github.com/caiogondim/maglev
Let me know if you need help installing it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants