Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Something odd has just started happening. On opening a new terminal, the first line of the terminal now says:
install: target 'xmas' is not a directory.
I've no idea what is causing that to happen, or how to track it down.

I'm on Ubuntu 11.10. My terminal is ZSH, with Oh My ZSH. Here is my .zshrc file and my oh-my-zsh.sh file (it is unchanged from the original).

What should I investigate next?

share|improve this question

closed as too localized by jrg, jokerdino, Marco Ceppi Jan 24 '12 at 16:03

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

I could not find the call to install in either script. Maybe a system wide script /etc/profile or so has it in there. You can run grep -R install /etc/ | grep xmas. That should give you a hing. –  Martin Ueding Dec 13 '11 at 15:42
sudo grep -R install /etc/ | grep xmas returned nothing –  Premasagar Dec 13 '11 at 15:46
Okay, that says that there is no line which has both "install" and "xmas" in any of the files. This is strange. You could do the same for your home directory, just to be sure it is not there. grep -R install ~ | grep xmas. –  Martin Ueding Dec 13 '11 at 15:52
Can you comment out the source $ZSH/oh-my-zsh.sh line to see if it a problem with the oh-my-zsh plugins. –  bodhi.zazen Dec 13 '11 at 16:16
There was nothing from grep -R install ~ | grep xmas but yes, commenting out source $ZSH/oh-my-zsh.sh works! In fact, if I just remove npm from the plugin list, then that resolves it. Something to do with this, perhaps: github.com/isaacs/npm/blob/master/lib/npm.js#L165 - thanks queueoverflow and bodhu.zazen –  Premasagar Dec 14 '11 at 12:08

1 Answer 1

It was the npm plugin for Oh My Zsh that was triggering this. (See comments below my original question).

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.