#11866: zshell prompt
-----------------------+----------------------------------------------------
Reporter: malb | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-4.7.2
Component: scripts | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author: Martin Albrecht
Merged: | Dependencies:
-----------------------+----------------------------------------------------
Changes (by newvalueoldvalue):
* status: new => needs_review
* author: => Martin Albrecht
Old description:
> This sucks:
>
> {{{
> malb@road:~ $ env | grep "SHELL="
> SHELL=/bin/zsh
> malb@road:~ $ sage -sh
> ...
>
> Bypassing shell configuration files ...
>
> SAGE_ROOT=/home/malb/Sage/current\n(sage subshell) \h:\W \u$
> }}}
>
> i.e., the prompt is all wrong, compared to:
>
> {{{
> malb@road:/opt/sage-4.7.2.alpha3-prerelease/local/bin $
> /opt/sage-4.7.2.alpha3-prerelease/sage -sh
>
> Starting subshell with Sage environment variables set.
> Be sure to exit when you are done and do not do anything
> with other copies of Sage!
>
> Bypassing shell configuration files ...
>
> SAGE_ROOT=/opt/sage-4.7.2.alpha3-prerelease
> (sage subshell) road:/opt/sage-4.7.2.alpha3-prerelease/local/bin malb$
> }}}
New description:
This sucks:
{{{
malb@road:~ $ env | grep "SHELL="
SHELL=/bin/zsh
malb@road:~ $ sage -sh
...
Bypassing shell configuration files ...
SAGE_ROOT=/home/malb/Sage/current\n(sage subshell) \h:\W \u$
}}}
i.e., the prompt is all wrong, compared to:
{{{
malb@road:/opt/sage-4.7.2.alpha3-prerelease/local/bin $
/opt/sage-4.7.2.alpha3-prerelease/sage -sh
Starting subshell with Sage environment variables set.
Be sure to exit when you are done and do not do anything
with other copies of Sage!
Bypassing shell configuration files ...
SAGE_ROOT=/opt/sage-4.7.2.alpha3-prerelease
(sage subshell) road:/opt/sage-4.7.2.alpha3-prerelease/local/bin malb$
}}}
The attached patch fixes this.
'''Apply''' [attachment:trac11866_proper_zsh_prompt.patch] to the
root/scripts directory, not the normal Sage repository.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11866#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.