Skip to content

Add GitPromptValues global to allow error status display in prompt#684

Merged
rkeithhill merged 1 commit intomasterfrom
rkeithhill/add-poshgitvalues
Jul 4, 2019
Merged

Add GitPromptValues global to allow error status display in prompt#684
rkeithhill merged 1 commit intomasterfrom
rkeithhill/add-poshgitvalues

Conversation

@rkeithhill
Copy link
Copy Markdown
Collaborator

@rkeithhill rkeithhill commented Jul 2, 2019

It is useful to display the error status of the last command. But in
order to do that we must preserve the value of $? and make the
original $LASTEXITCODE available to string expansion in the prompt.

cc #681

@rkeithhill rkeithhill force-pushed the rkeithhill/add-poshgitvalues branch from f927f6d to 2c76416 Compare July 2, 2019 04:56
@rkeithhill rkeithhill requested a review from dahlbyk July 2, 2019 04:56
@rkeithhill rkeithhill force-pushed the rkeithhill/add-poshgitvalues branch 3 times, most recently from a8d3b47 to 6643d04 Compare July 4, 2019 15:12
…is useful to display the error status of the last command. But inorder to do that we must preserve the value of $? and make theoriginal $LASTEXITCODE available to string expansion in the prompt.
@rkeithhill rkeithhill force-pushed the rkeithhill/add-poshgitvalues branch from 6643d04 to 1d40ee0 Compare July 4, 2019 15:16
@rkeithhill rkeithhill merged commit a64e5e0 into master Jul 4, 2019
@rkeithhill rkeithhill deleted the rkeithhill/add-poshgitvalues branch July 4, 2019 15:20
@dahlbyk
Copy link
Copy Markdown
Owner

dahlbyk commented Sep 11, 2019

Belated 👍

This is great!

@rkeithhill
Copy link
Copy Markdown
Collaborator Author

Thanks!

@dahlbyk dahlbyk added this to the v1.0 milestone Mar 15, 2020
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.

2 participants