Development > Scripting and Bash

Bash Prompt

(1/2) > >>

Running a trial of LL on both a virtual machine and live boot, I cannot change the prompt. PS1="\$ " works on any other distribution I've used but not on LL. No error message, just no change. Even put it in .bashrc. I've checked shell and it is bash. Any ideas or is this a bug.
Currently using Mint 18.3, but seriously considering LL.

Hello dave61430,

it can be changed on desktop installed LL 3.2 , LL 4 series uses different terminal, maybe a member using 4 series can try also ?

^Here I backup default prompt, echo backup to check it is correct, change prompt to PS1="\$ ", run cal to show new prompt holds after additional command, then restore to the backup of default prompt.

I have the same problem, running LL 4.4, I cannot change the bash prompt in any terminal.  I've tracked it through all the normal config files and changed everything I thought might have an effect, to no avail.

One suspicious thing, the definition for PS1 when you echo it is fully expanded:

--- Code: --- thomasd  ~  echo $PS1
\[\] thomasd \[\] \[\]~ \[\] \[\]
 thomasd  ~  

--- End code ---

so it looks like some service somewhere is setting PS1 in the background.


Not quite sure of your question here. Are you saying you are running the "live" ISO or an installed system? You can certainly customize the prompt on any Linux/Unix system ... except for many "live" ISOs and "safe" mode mods.


Thread hijacks don't require a response other than from a Mod to delete said post. Thanks TC.

Sent from my Phone using Tapatalk


[0] Message Index

[#] Next page

Go to full version