complete icon indicating copy to clipboard operation
complete copied to clipboard

Commands written to `~/.profile` are not compatible with `zsh`

Open mmalecki opened this issue 12 years ago • 6 comments

See nodejitsu/jitsu#360.

mmalecki avatar Dec 03 '12 22:12 mmalecki

I just noticed this on my system recently, so maybe it was added in a recent version of jitsu? Either way, I'll be happy to see it addressed.

/Users/adam/.profile:5: command not found: shopt

atuttle avatar Dec 11 '13 16:12 atuttle

not many people seem to care about this since its been open for a year. I don't use zsh, i use fish and bash. Nevertheless, a pull request for this would be awesome :+1:

heapwolf avatar Dec 11 '13 16:12 heapwolf

I had a quick glance at the man page for shopt but I guess I'm not just that much of a CLI ninja. Can you tell me what the goal of this line is so that maybe I can find a way to get it working that's both zsh & bash friendly?

atuttle avatar Dec 11 '13 16:12 atuttle

Here is the best place to start i think -- http://ss64.com/bash/shopt.html

heapwolf avatar Dec 11 '13 16:12 heapwolf

This page says:

progcomp If set, the programmable completion facilities are enabled. This option is enabled by default.

I think shopt command could be simply removed.

arikon avatar Mar 23 '14 14:03 arikon

+1, can you whip up a quick test/PR for that?

heapwolf avatar Mar 23 '14 14:03 heapwolf