-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
Use precmd_functions instead of preexec_functions #465
Comments
Long ago chruby used to use Maybe we should detect non-interactive mode and fallback to using |
Looks like a good approach! While that I'm calling |
@sobrinho note that Also, we should make sure that any changes to |
@postmodern Here's another use case. I've tripped over this issue as well trying to add the current Ruby version to the iTerm status bar: In case someone is interested in how to do this:
Currently, |
I'm adding a call to Agree that a good solution would be to use I'm generally only running bash in scripts - does Bash also have the same problem? |
Description
preexec_functions does not run early enough for chruby work soon enough for RPS1.
Another way of fixing is calling
chruby_auto
on~/.zshrc
but precmd_functions seems more appropriate. Maybe?Steps To Reproduce
Steps to reproduce the bug:
.ruby-version
with any versionexport RPS1="%F{240}host %F{255}%m %F{240}pwd %F{255}%1~ %F{240}vcs %F{255}\${vcs_info_msg_0_:-ッ} %F{240}ruby %F{255}\$(chruby_prompt_info || echo ッ) %F{240}node %F{255}\$(node -v || echo "ッ")"
Expected Behavior
Actual Behavior
Environment
The text was updated successfully, but these errors were encountered: