-2

I used this command to change the PS1 settings

sudo gedit /etc/bashrc

When I change my PS1 settings I get this. See also my question earlier today to see the whole problem I have

(gedit:10788): dconf-WARNING **: failed to commit changes to dconf: Could not connect: Connection refused

warnings

Zanna
  • 70,465

1 Answers1

0

This is a bit of an XY problem. You actually need to edit the file ~/.bashrc, not /etc/bash.bashrc.

But if you do need to edit a system file, don't use sudo gedit. Instead use a command-line editor like nano, i.e. sudo nano /etc/bash.bashrc.

For more details, see "Set document metadata failed" when I run sudo gedit

wjandrea
  • 14,236
  • 4
  • 48
  • 98