0

I've noticed a few strange changes to my mac. One of which is that now my Terminal prompt only shows the current directory and not the full path (or the path from the current user). Do you know why this might have changed and how to change it back to show the full path?

eg it used to show something like

username/Music/GarageBand$

but now it shows

mycomputername:GarageBand username$
4
  • What did you change/upgrade since "before"?
    – nohillside
    Commented Jun 22, 2021 at 9:11
  • @nohillside it seems this setting was in my .bash_profile file. Unfortunately my .bash_profile file has been inexplicably deleted or was moved yesterday (not by me nor do I have any explanation). Do you know why my bash_profile might have been removed? Could it have been moved somewhere? I didn't make a change to it, the file no longer exists in the root of my user folder (bash_history exists). Unfortunately there had been a problem with timemachine for a few months and i've just realised my other backup utility wasn't backing up that directory (I'd created a number of custom scripts)
    – atreeon
    Commented Jun 22, 2021 at 9:31
  • 1
    I can't see onto your machine nor do I know what you did yesterday :-) Any software installation/upgrade, any Terminal command you ran maybe?
    – nohillside
    Commented Jun 22, 2021 at 9:51
  • Ha! fair enough! I'm guessing that something has deleted it. Thank you anyway (I've just found a backup though)
    – atreeon
    Commented Jun 22, 2021 at 10:07

1 Answer 1

1

The following script needs to be in .bash_profile

PS1='\w $ '

(an unrelated problem had meant my bash_profile file was removed)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .