Yahreen
Yahreen

Reputation: 1669

Random folder name precedes Terminal prompt

When I open new terminals, a random folder name ("screensaver") precedes my current working directory:

Last login: Sat Nov 16 18:35:56 on ttys002
screensaver:untitled folder userName$ 

I just worked on a project relating to a screensaver, so I'm not surprised by the actual word there. But I have no idea why it precedes all of my terminal prompts now.

Anyone know what this is and how to remove?

Upvotes: 0

Views: 105

Answers (1)

Giacomo1968
Giacomo1968

Reputation: 26066

Your bash prompt was inadvertently changed. Don’t panic! It can be fixed.

Look in your .profile, .bash_profile or .bashrc and see if a line that reads screensaver with possibly more text exists. If you can please post to the question for more specific help on removing.

More details on customizing your bash prompt can be found on this site. Should give you insight on how bash prompts work, how you can customize and—in this case—clean it up.

EDIT: Also, it might be worth it to check the system bash/profile defaults in one—or both—of these two files:

/etc/profile

Or this:

/etc/bashrc

Upvotes: 1

Related Questions