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

Change to use omz git_prompt* functions #4050

Merged
merged 1 commit into from Sep 19, 2015
Merged

Change to use omz git_prompt* functions #4050

merged 1 commit into from Sep 19, 2015

Conversation

mbologna
Copy link
Contributor

Removed references for official git __git_ps1() functions.
Change to use omz function git_prompt* functions like:

  • git_prompt_info() -> branch name
  • git_prompt_status() -> check if untracked, modified, added,
    stashed file are in the current git repo
  • git_remote_status() -> check if current repo is ahead, behind,
    or diverged.
    These functions returns string automatically added to your PS1;
    these are customizable via exporting ZSH_THEME_GIT_PROMPT*

Removed references for official git __git_ps1() functions.
Change to use omz function git_prompt* functions like:
- git_prompt_info() -> branch name
- git_prompt_status() -> check if untracked, modified, added,
  stashed file are in the current git repo
- git_remote_status() -> check if current repo is ahead, behind,
  or diverged.
These functions returns string automatically added to your PS1;
these are customizable via exporting ZSH_THEME_GIT_PROMPT*
@mbologna
Copy link
Contributor Author

@robbyrussell can you please merge it? otherwise michelebologna.theme is broken at the moment. Thanks

@mbologna
Copy link
Contributor Author

mbologna commented Sep 2, 2015

@mcornella @robbyrussell could you please merge it? michelebologna theme is broken.
Thanks

@mcornella
Copy link
Member

Ok, this solves the command not found __git_ps1 error:
michelebologna

👍 /cc @robbyrussell
It will be merged soon, thanks

robbyrussell added a commit that referenced this pull request Sep 19, 2015
@robbyrussell robbyrussell merged commit 1324e61 into ohmyzsh:master Sep 19, 2015
@robbyrussell
Copy link
Member

@mbologna thanks for this, apologies for the latency on getting this merged

@mbologna mbologna deleted the michelebologna_fix_git_prompt branch September 27, 2015 09:22
nunogt pushed a commit to nunogt/oh-my-zsh that referenced this pull request Jan 25, 2016
…prompt

Change to use omz git_prompt* functions
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

Successfully merging this pull request may close these issues.

None yet

3 participants