imajes/rbenv — comment on commit 86458400eb3dad659ede442fd69014d1119ae7c0
File:  line 0
By richoH:

It does work, but it's testing for a condition that just happens to overlap with the actual condition you're interested in.

You only want completion in sessions with a human being typing into one end of them, which are interactive shells. interactive shells do tend to be login shells though :P

I'm being a perfectionist but I generally do prefer to see things just right :)