Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

reset terminal export

I need help with my terminal, it is showing 12-15 lines of "declare code", which i dont know what that is. It was working fine before i exported a path without :$PATH. export PATH=to/the/path just that. i forget to add :$PATH. And now when ever i open terminal it shows me this.

I am using mac pro early 2015 os 10.10.4User uploaded file

MacBook Pro (Retina, 13-inch,Early 2015), OS X Yosemite (10.10.4)

Posted on Jul 30, 2015 5:16 AM

Reply
5 replies

Jul 30, 2015 7:16 AM in response to DishankJindal

Back up all data.

Select

Shell ▹ New Command

from the Terminal menu bar. Uncheck the box marked

Run command inside a shell

if checked.

Copy and paste the following line into the text box that opens, then press return:

mkdir disabled_shell_files

Close the Terminal window that opens. Repeat with this line:

mv .profile .bash_history .bash_profile .bashrc .inputrc disabled_shell_files

Your old shell initialization and history files will be saved in a directory named "disabled_shell_files" at the top level of your home directory. It's normal that some of these files will not exist, and therefore you will get some "no such file" errors.

Close the window, open a new one, and test.

reset terminal export

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.