#15590: Pimp my Shell
-------------------------------------+-------------------------------------
Reporter: vbraun | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.2
Component: scripts | Resolution:
Keywords: | Merged in:
Authors: Volker Braun | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/vbraun/pimp_my_shell | fb5b8482c2406802ab540abc2c2673f7d94ec836
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by jhpalmieri):
On a machine with `SHELL=/bin/bash`, it works well. On the machine with
`SHELL=/bin/sh`, it is entering the appropriate case ("`bash)`"), but the
bashrc file in `local/share/sage/ext/shell` is not loaded. If I replace
`"$SHELL"` with {{{`command -v bash`}}}, it is loaded — this is in the
line
{{{
set -- "$SHELL" --rcfile "$SAGE_EXTCODE/shell/bashrc" "$@"
}}}
In this case, it works, but not perfectly: the prompt comes out as
{{{
\033]0;palmieri@jpalmieri: ~/Desktop/Sage_stuff/git/sage\007\c
Sage: jpalmieri 12:11:42 {new_shell|modified}
~/Desktop/Sage_stuff/git/sage
$
}}}
with the middle line appropriately colored. (On the first machine, the
prompt looks better: it doesn't include the first line. It's running a
slightly newer version of bash, 3.2.51 instead of 3.2.48; it's also
running OS X 10.9 instead of 10.8, and as mentioned, it has
`SHELL=/bin/bash`.)
--
Ticket URL: <http://trac.sagemath.org/ticket/15590#comment:13>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.