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

Pure won't allow GIT_TERMINAL_PROMPT to persist or be overriden #111

Closed
kevinSuttle opened this issue Apr 16, 2015 · 5 comments
Closed

Pure won't allow GIT_TERMINAL_PROMPT to persist or be overriden #111

kevinSuttle opened this issue Apr 16, 2015 · 5 comments

Comments

@kevinSuttle
Copy link

See: git-lfs/git-lfs#209 (comment)

@kevinSuttle
Copy link
Author

Example, after full uninstall, shell logout/login, and reinstall via NPM.

❯ export GIT_TERMINAL_PROMPT=1

❯ echo $GIT_TERMINAL_PROMPT
0

@mafredri
Copy link
Collaborator

I cannot reproduce this, could it be something else that you have in your zsh configuration? Like running prompt setup every time?

@kevinSuttle
Copy link
Author

Not sure. Here are my dotfiles. https://github.com/kevinSuttle/dotfiles/blob/master/zshenv#L33

@mafredri
Copy link
Collaborator

Here's your problem: https://github.com/kevinSuttle/dotfiles/blob/master/zshrc#L63

You reinitialize prompt pure at every new line. Moving it out of precmd should fix your problems.

@kevinSuttle
Copy link
Author

YES! Worked! Thanks @mafredri cc: @technoweenie.

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

2 participants