Modify shell prompt when inside a snap
Bug #1683389 reported by
Michael Hall
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
Changed in snappy: | |
importance: | Undecided → Wishlist |
status: | New → Triaged |
affects: | snappy → snapd |
To post a comment you must log in.
this change will make things using the shell look not so nice, like asciinema.