Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Problem with zip completion



On Oct 17,  5:24pm, Bart Schaefer wrote:
}
} On Oct 17,  7:11pm, Vincent Lefevre wrote:
} }
} }   TRAPCLD() { precmd > $TTY }
} } 
} } this solves the problem. Is it the right thing to do?
} 
} Almost certainly.

Actually, having given it a moment's more thought, it would probably be
better to use

	TRAPCLD() { [[ -t 0 ]] && precmd }

or even

	TRAPCLD() { [[ -o interactive && -t 0 ]] && precmd }



Messages sorted by: Reverse Date, Date, Thread, Author