"Thompson, David" <dthomps...@worcester.edu> skribis: > On Wed, Mar 30, 2016 at 9:28 AM, Cyril Roelandt <tipec...@gmail.com> wrote: >> On 03/28/2016 03:22 AM, David Thompson wrote: >>> + ;; Set a reasonable default PS1. >>> + (setenv "PS1" "[ENV] \\u@\\h \\w\\$ ") >>> + >> Would it be an acceptable feature to let the user ask for their own PS1? >> I very often have to make sure my code works on both Python 2.7 and >> Python 3.4, and it would be very helpful to have environments named >> "(py27)" and "(py34)" instead of just "[ENV]". > > I should have made the commit message better. This change only > applies to containers. If you want to set your own PS1 there, source > a script in the container.
Specifically, you can have something like this in ~/.bashrc (this is the default on GuixSD): --8<---------------cut here---------------start------------->8--- # Adjust the prompt depending on whether we're in 'guix environment'. if [ -n "$GUIX_ENVIRONMENT" ] then export PS1='\u@\h \w [env]\$ ' else export PS1='\u@\h \w\$ ' fi --8<---------------cut here---------------end--------------->8--- HTH! Ludo’.