Modify shell prompt when inside a snap

Bug #1683389 reported by Michael Hall
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Triaged
Wishlist
Unassigned

Bug Description

Reason:

When debugging a snap with "snap run --shell" it's easy to forget when you are inside of the snap's environment and when you are not.

Solution:

When entering a shell inside a snap, add the snap's name to the shell prompt. Something like:
export PS1=($SNAPNAME)$PS1

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

this change will make things using the shell look not so nice, like asciinema.

Changed in snappy:
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
John Lenton (chipaca) wrote :

@sergio, we _could_ do it just for 'snap run --shell'.

Michael Vogt (mvo)
affects: snappy → snapd
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.