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

Set prompt using double quotes #10

Merged
merged 1 commit into from
Apr 5, 2017

Conversation

jmitchell
Copy link
Contributor

Fixes #5 in gnome-terminal.

With this change echo $PROMPT produces %(?,%{%}λ,%{%}λ) %{%}%n %{%}[%3~] %{%}→ %{%}. Otherwise, with the existing single quotes substitution is deferred:

${LAMBDA}\
 %{$fg_bold[$USERCOLOR]%}%n\
 %{$fg_no_bold[magenta]%}[%3~]\
 $(check_git_prompt_info)\
%{$reset_color%}

The substitution delay explains why several have confirmed the workaround of removing local before LAMBDA's assignment fixes it. I'm not sure why some terminals behave differently, but this fix will likely be portable and unobtrusive.

@halfo halfo mentioned this pull request Apr 3, 2017
@halfo
Copy link
Owner

halfo commented Apr 3, 2017

Hi! Thanks for the pull request. As I couldn't reproduce the issue, I asked few users here #5 if this patch solves the problem. I'll wait until they verify.

@halfo halfo merged commit c6445c7 into halfo:master Apr 5, 2017
@halfo
Copy link
Owner

halfo commented Apr 5, 2017

Thanks for the help @jmitchell :)

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.

No Lambda Icon
2 participants