Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

A while ago I installed a program called "j" for the terminal. It was supposed to make things simpler. However, after a while of using it I decided I didn't really need it and trashed it. Now ever time I open the terminal it says:

-bash: /Users/aslet/j.sh: No such file or directory

I have no idea what file is telling the terminal to look for the program, so some help would be appreciated.

share|improve this question

migrated from stackoverflow.com May 27 '13 at 5:20

This question came from our site for professional and enthusiast programmers.

    
You can also look for the line doing grep "j.sh" * in your home directory. –  fedorqui May 25 '13 at 23:19

2 Answers 2

up vote 0 down vote accepted

When you fire up the terminal, content from the following gets loaded upon existence:

 /etc/profile
~/.bash_profile
~/.bash_login   (if .bash_profile does not exist)
~/.profile      (if .bash_login does not exist)

It appears that the one of the file listed above still has reference to the j.sh script which no longer exists after you removed the program.

Comment the line which calls that script and it should resolve your issue.

share|improve this answer
    
I don't have a .bash_login file in my home directory in Mac OSX 10.6.8. –  7stud May 25 '13 at 22:14
    
Right. I updated the answer. –  jaypal May 25 '13 at 22:21
    
@Jaypal That's the thing. I already checked all these files and it's not there. –  Aslet May 25 '13 at 23:21
    
@Aslet Check your /etc/profile. If you don't have any reference in all of the above files then the reference has to be in /etc/profile. –  jaypal May 25 '13 at 23:26
    
@Jaypal Thanks! Found it! –  Aslet May 25 '13 at 23:50

Check .bashrc and .bash_profile in your home directory. The leading . means they are hidden files. Look for a line containing the directory listed in the error message.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.