No matter what directory I enter, the terminal always shows me the root directory which is "Nidas-MBP"
Nidas-MBP% cd Projects Nidas-MBP% ls 09-Selector-Exercise-Starter.zip My Little Form 09_Selector_Exercise_Starter Prefix Free File Blog Recursion Practice Callbacks Themes Callbacks-Exercise Todo-Vanilla Copywriting css3-contact-form.zip Freelancer Theme webpack-deepdive Frog Chase Nidas-MBP% cd webpack-deepdive Nidas-MBP% ls es6-todomvc Nidas-MBP%
I have tried adding the following command to end of the ~/.bashrc file and the ~/.profile file but the terminal still remained unchanged.
PS1='[\u \W$] '
When I run
echo "$PS1" it says
I found two lines
PS1='[ \W]$ ' inside
~/.bash_profile, so I replaced them both with
PS1='[\u \W$] ' and typed
source ~/.bash_profile. In response, my terminal started saying
[\u \W$] instead of
I have no idea what I should do now to bring it back to the way it used to be.